remove duplicate 1/0 boolean code

This commit is contained in:
proddy
2022-09-18 17:04:06 +02:00
parent e0d7e7698e
commit a959af80b5

View File

@@ -1300,8 +1300,6 @@ 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;
char s[7];
json[name] = Helpers::render_boolean(s, value_b);
} }
} }