mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[sonyprojector] Fix edge case in mac address decoding (#16976)
* [sonyprojector] mac fix edge case * [sonyprojector] delete redundant toLowerCase() call Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
3597f55bbd
commit
fde5652f44
@ -326,8 +326,8 @@ public class SonyProjectorSdcpConnector extends SonyProjectorConnector {
|
||||
if (!macAddress.isEmpty()) {
|
||||
macAddress = macAddress + "-";
|
||||
}
|
||||
macAddress = macAddress + Integer.toHexString(macByte);
|
||||
macAddress = macAddress + String.format("%02x", macByte);
|
||||
}
|
||||
return macAddress.toLowerCase();
|
||||
return macAddress;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user