diff --git a/src/knx_facade.cpp b/src/knx_facade.cpp index 82c4473..2b6d1cb 100644 --- a/src/knx_facade.cpp +++ b/src/knx_facade.cpp @@ -14,9 +14,15 @@ KnxFacade knx; #define ICACHE_RAM_ATTR #endif +#ifndef __linux__ +uint32_t lastpressed=0; +#endif ICACHE_RAM_ATTR void buttonUp() { #ifndef __linux__ - knx._toogleProgMode = true; + if (millis() - lastpressed > 200){ + knx._toogleProgMode = true; + lastpressed = millis(); + } #endif -} \ No newline at end of file +}