show device id in hex

This commit is contained in:
proddy
2025-03-02 17:33:31 +01:00
parent 57c4d550a3
commit 44c4ee8bc0

View File

@@ -2115,7 +2115,7 @@ bool System::readCommand(const char * data) {
strlcpy(value, p, 10); // get string strlcpy(value, p, 10); // get string
device_id = (uint8_t)Helpers::hextoint(value); // convert hex to int device_id = (uint8_t)Helpers::hextoint(value); // convert hex to int
if (!EMSESP::valid_device(device_id)) { if (!EMSESP::valid_device(device_id)) {
LOG_ERROR("Invalid device ID (%d) in read command", device_id); LOG_ERROR("Invalid device ID (0x%02X) in read command", device_id);
return false; // invalid device return false; // invalid device
} }
} }