lowercase Me and All, so its same as device names

This commit is contained in:
proddy
2024-09-11 22:33:47 +02:00
parent 1eb4fd95d8
commit 061a5d4abf

View File

@@ -815,9 +815,9 @@ bool EMSESP::return_not_found(JsonObject output, const char * msg, const char *
// search for recognized device_ids : Me, All, otherwise print hex value // search for recognized device_ids : Me, All, otherwise print hex value
std::string EMSESP::device_tostring(const uint8_t device_id) { std::string EMSESP::device_tostring(const uint8_t device_id) {
if ((device_id & 0x7F) == EMSbus::ems_bus_id()) { if ((device_id & 0x7F) == EMSbus::ems_bus_id()) {
return "Me"; return "me";
} else if (device_id == 0x00) { } else if (device_id == 0x00) {
return "All"; return "all";
} else { } else {
char buffer[5]; char buffer[5];
return Helpers::hextoa(buffer, device_id); return Helpers::hextoa(buffer, device_id);