[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:
Andrew Fiddian-Green 2024-07-01 16:22:37 +01:00 committed by Ciprian Pascu
parent 3597f55bbd
commit fde5652f44

View File

@ -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;
}
}