mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-28 23:22:19 +03:00
Корректируем алгоритм работы с наследными setValue в модулях
This commit is contained in:
@@ -40,7 +40,7 @@ class ButtonOut : public IoTItem {
|
||||
void setValue(IoTValue Value, bool generateEvent = true) {
|
||||
value = Value;
|
||||
IoTgpio.digitalWrite(_pin, _inv?!value.valD:value.valD);
|
||||
regEvent((String)(int)value.valD, "ButtonOut");
|
||||
if (generateEvent) regEvent((String)(int)value.valD, "ButtonOut");
|
||||
}
|
||||
|
||||
String getValue() {
|
||||
|
||||
Reference in New Issue
Block a user