[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>
This commit is contained in:
Andrew Fiddian-Green 2024-07-01 16:22:37 +01:00 committed by GitHub
parent 74b76129ba
commit 812d7a77c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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