1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-08-24 08:10:52 +02:00

[Huawei] Change display of command IDs to hex

This commit is contained in:
Damien 'Psolyca' Gaignon 2024-03-23 18:21:33 +01:00
parent 1392f24f4c
commit 3f7a7304bb
No known key found for this signature in database
GPG Key ID: 9E9404E5D9E11843

View File

@ -137,7 +137,7 @@ public class HuaweiCoordinator {
public void printCommandsPerService() {
StringBuilder msg = new StringBuilder();
for(Map.Entry<Integer, byte[]> entry : commandsPerService.entrySet()) {
msg.append("ServiceID: ").append(entry.getKey()).append(" => Commands: ");
msg.append("ServiceID: ").append(Integer.toHexString(entry.getKey())).append(" => Commands: ");
for (byte b: entry.getValue()) {
msg.append(Integer.toHexString(b)).append(" ");
}