mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-10-26 22:10:45 +00:00
[Build] Fix build errors on ESP8266
This commit is contained in:
1 parent
513314996c
commit
da556b92b1
2 files changed
+4
-1
No files matched your search
@@ -214,10 +214,12 @@ void TaskValuesWriterHelper::pluginWebformShowValue()
|
||||
addHtmlDiv(F("div_br"));
|
||||
}
|
||||
|
||||
#if FEATURE_STRING_VARIABLES
|
||||
if (hasPresentation) { value = presentation; }
|
||||
else if (!uom.isEmpty()) {
|
||||
value += concat(' ', uom);
|
||||
}
|
||||
#endif
|
||||
|
||||
String valName_tmp(valName);
|
||||
|
||||
|
||||
@@ -638,12 +638,13 @@ void handle_json_stream_task_value_data(TaskValuesWriterHelper*data)
|
||||
writer->write(kv);
|
||||
}
|
||||
# endif // if FEATURE_STRING_VARIABLES
|
||||
|
||||
#if FEATURE_TASKVALUE_UNIT_OF_MEASURE
|
||||
if (!data->uom.isEmpty()) {
|
||||
KeyValueStruct kv(F("UoM"), data->uom);
|
||||
kv.setID(data->uom_id);
|
||||
writer->write(kv);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user