Update knx_facade.cpp

This commit is contained in:
Maggyver 2019-05-19 19:53:47 +02:00 committed by GitHub
parent ddcfd2c2ad
commit 24e7c36c20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,21 +29,21 @@ void buttonUp()
if (knx.progMode())
{
#ifdef ESP8266_WEMOS_D1_R2
digitalWrite(knx.ledPin(), HIGH);
#endif
#ifdef ESP8266_NODE_MCU
digitalWrite(knx.ledPin(), HIGH);
#endif
#ifdef ESP8266_NODE_MCU
digitalWrite(knx.ledPin(), LOW);
#endif
#endif
knx.progMode(false);
}
else
{
#ifdef ESP8266_WEMOS_D1_R2
digitalWrite(knx.ledPin(), LOW);
#endif
#ifdef ESP8266_NODE_MCU
digitalWrite(knx.ledPin(), LOW);
#endif
#ifdef ESP8266_NODE_MCU
digitalWrite(knx.ledPin(), HIGH);
#endif
#endif
knx.progMode(true);
}
}