Исправляем ошибку чтения значения Item в Lcd2004

This commit is contained in:
2022-03-04 00:11:13 +03:00
parent 9880e9d169
commit 2bca458f0c

View File

@@ -42,11 +42,10 @@ class Lcd2004 : public IoTItem {
void doByInterval() { void doByInterval() {
if (LCDI2C != nullptr) { if (LCDI2C != nullptr) {
printBlankStr(_prevStrSize); printBlankStr(_prevStrSize);
String tmpStr; String tmpStr = "";
// to do if (_descr != "none") tmpStr = _descr + " " + getItemValue(_id2show);
// jsonRead(paramsHeapJson, _id2show, tmpStr); else tmpStr = getItemValue(_id2show);
if (_descr != "none") tmpStr = _descr + " " + tmpStr;
LCDI2C->setCursor(_x, _y); LCDI2C->setCursor(_x, _y);
LCDI2C->print(tmpStr); LCDI2C->print(tmpStr);