check tags

This commit is contained in:
MichaelDvP
2022-07-19 12:59:54 +02:00
parent ebc5cfa2d8
commit 273526dc16
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}