Browse Source

Fix for long click (#2172)

With uint8_t length function _buttonMapReleased never returned BUTTON_EVENT_LNGCLICK. BUTTON_EVENT_CLICK returned instesd. I verified that with uint16_t length it returns BUTTON_EVENT_LNGCLICK when correspondent delay passed.
mcspr-patch-1
DmitryBlinov 4 years ago
committed by GitHub
parent
commit
6017ad9474
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/espurna/button_config.h

+ 1
- 1
code/espurna/button_config.h View File

@ -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 :


Loading…
Cancel
Save