Корректируем алгоритм работы с наследными setValue в модулях

This commit is contained in:
2022-10-22 07:59:26 +03:00
parent 2078ecd17b
commit 55c0cfd718
8 changed files with 8 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ class VButton : public IoTItem {
void setValue(IoTValue Value, bool generateEvent = true) {
value = Value;
regEvent((String)(int)value.valD, "VButton");
if (generateEvent) regEvent((String)(int)value.valD, "VButton");
}
String getValue() {