mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
@@ -1340,6 +1340,9 @@ bool EMSdevice::generate_values(JsonObject & output, const uint8_t tag_filter, c
|
|||||||
json[name] = value_b;
|
json[name] = value_b;
|
||||||
} else if (EMSESP::system_.bool_format() == BOOL_FORMAT_10) {
|
} else if (EMSESP::system_.bool_format() == BOOL_FORMAT_10) {
|
||||||
json[name] = value_b ? 1 : 0;
|
json[name] = value_b ? 1 : 0;
|
||||||
|
} else {
|
||||||
|
char s[7];
|
||||||
|
json[name] = Helpers::render_boolean(s, value_b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user