diff --git a/code/espurna/button_config.h b/code/espurna/button_config.h index 9228a923..9bb1022b 100644 --- a/code/espurna/button_config.h +++ b/code/espurna/button_config.h @@ -134,7 +134,7 @@ constexpr const unsigned char _buttonDecodeEventAction(unsigned long actions, un ); } -constexpr const uint8_t _buttonMapReleased(uint8_t count, uint8_t length) { +constexpr const uint8_t _buttonMapReleased(uint8_t count, uint16_t length) { return ( (1 == count) ? ( (length > BUTTON_LNGLNGCLICK_DELAY) ? BUTTON_EVENT_LNGLNGCLICK :