Fix codecheck complain

This commit is contained in:
MichaelDvP
2021-04-22 18:45:25 +02:00
parent 7faa0d6e65
commit 3797342a93
2 changed files with 1 additions and 2 deletions

View File

@@ -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)) { if (Helpers::hasValue(*(uint8_t *)(dv.value_p), EMS_VALUE_BOOL)) {
json["value"] = (bool)(*(uint8_t *)(dv.value_p)) ? true : false; json["value"] = (bool)(*(uint8_t *)(dv.value_p)) ? true : false;
} }
json["type"] = F_(boolean); json["type"] = F("boolean");
break; break;
case DeviceValueType::TIME: case DeviceValueType::TIME:
if (Helpers::hasValue(*(uint32_t *)(dv.value_p))) { if (Helpers::hasValue(*(uint32_t *)(dv.value_p))) {

View File

@@ -137,7 +137,6 @@ MAKE_PSTR(unset, "<unset>")
MAKE_PSTR_WORD(number) MAKE_PSTR_WORD(number)
MAKE_PSTR_WORD(enum) MAKE_PSTR_WORD(enum)
MAKE_PSTR_WORD(boolean)
MAKE_PSTR_WORD(text) MAKE_PSTR_WORD(text)
MAKE_PSTR_WORD(2) MAKE_PSTR_WORD(2)