Skip to content

Commit

Permalink
[sonyprojector] Fix edge case in mac address decoding (openhab#16976)
Browse files Browse the repository at this point in the history
* [sonyprojector] mac fix edge case
* [sonyprojector] delete redundant toLowerCase() call

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
  • Loading branch information
andrewfg authored and joni1993 committed Oct 15, 2024
1 parent e7ca711 commit 67efcaa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ public String getMacAddress() throws SonyProjectorException {
if (!macAddress.isEmpty()) {
macAddress = macAddress + "-";
}
macAddress = macAddress + Integer.toHexString(macByte);
macAddress = macAddress + String.format("%02x", macByte);
}
return macAddress.toLowerCase();
return macAddress;
}
}

0 comments on commit 67efcaa

Please sign in to comment.