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