Исправляем ошибку с перегрузкой setValue у дочерних классов

This commit is contained in:
2022-10-20 09:28:35 +03:00
parent cce9f2197a
commit 2a27b1d9bf
8 changed files with 8 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ class Pwm8266 : public IoTItem {
}
}
void setValue(IoTValue Value) {
void setValue(IoTValue Value, bool generateEvent = true) {
value = Value;
IoTgpio.analogWrite(_pin, value.valD);
regEvent(value.valD, "Pwm8266");