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