mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
show device id in hex
This commit is contained in:
@@ -2115,7 +2115,7 @@ bool System::readCommand(const char * data) {
|
||||
strlcpy(value, p, 10); // get string
|
||||
device_id = (uint8_t)Helpers::hextoint(value); // convert hex to int
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user