mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
check tags
This commit is contained in:
@@ -911,7 +911,7 @@ bool EMSdevice::get_value_info(JsonObject & output, const char * cmd, const int8
|
||||
int8_t tag = id;
|
||||
|
||||
// check if we have hc or wwc or hs
|
||||
if (id >= 1 && id <= 34) {
|
||||
if (id >= 1 && id <= (1 + DeviceValueTAG::TAG_HS16 - DeviceValueTAG::TAG_HC1)) {
|
||||
tag = DeviceValueTAG::TAG_HC1 + id - 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user