mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-29 07:32:18 +03:00
Корректируем алгоритм работы с наследными setValue в модулях
This commit is contained in:
@@ -47,7 +47,7 @@ class Pwm8266 : public IoTItem {
|
||||
void setValue(IoTValue Value, bool generateEvent = true) {
|
||||
value = Value;
|
||||
IoTgpio.analogWrite(_pin, value.valD);
|
||||
regEvent(value.valD, "Pwm8266");
|
||||
if (generateEvent) regEvent(value.valD, "Pwm8266");
|
||||
}
|
||||
//=======================================================================================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user