mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 14:42:18 +03:00
Корректируем алгоритм работы с наследными setValue в модулях
This commit is contained in:
@@ -313,7 +313,7 @@ class Date : public IoTItem {
|
||||
|
||||
void setValue(IoTValue Value, bool generateEvent = true) {
|
||||
value = Value;
|
||||
regEvent(value.valS, "");
|
||||
if (generateEvent) regEvent(value.valS, "");
|
||||
//отправка данных при изменении даты
|
||||
for (std::list<IoTItem *>::iterator it = IoTItems.begin(); it != IoTItems.end(); ++it) {
|
||||
if ((*it)->getSubtype() == "Loging") {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user