mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
Fix codecheck complain
This commit is contained in:
@@ -688,7 +688,7 @@ bool EMSdevice::get_value_info(JsonObject & root, const char * cmd) {
|
||||
if (Helpers::hasValue(*(uint8_t *)(dv.value_p), EMS_VALUE_BOOL)) {
|
||||
json["value"] = (bool)(*(uint8_t *)(dv.value_p)) ? true : false;
|
||||
}
|
||||
json["type"] = F_(boolean);
|
||||
json["type"] = F("boolean");
|
||||
break;
|
||||
case DeviceValueType::TIME:
|
||||
if (Helpers::hasValue(*(uint32_t *)(dv.value_p))) {
|
||||
|
||||
@@ -137,7 +137,6 @@ MAKE_PSTR(unset, "<unset>")
|
||||
|
||||
MAKE_PSTR_WORD(number)
|
||||
MAKE_PSTR_WORD(enum)
|
||||
MAKE_PSTR_WORD(boolean)
|
||||
MAKE_PSTR_WORD(text)
|
||||
|
||||
MAKE_PSTR_WORD(2)
|
||||
|
||||
Reference in New Issue
Block a user