mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
remove duplicate 1/0 boolean code
This commit is contained in:
@@ -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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user