J'ai fait une modif dans MD_UISwitch.h. A priori ça règle mon problème.
protected:
// Default values for timed events.
// Note these are all from the same base (ie when the switch is first detected)
static const uint16_t KEY_PRESS_TIME = 400; ///< Default key press time in milliseconds
static const uint16_t KEY_DPRESS_TIME = 400; ///< Default double press time between presses in milliseconds
static const uint16_t KEY_LONGPRESS_TIME = 600; ///< Default long press detection time in milliseconds
static const uint16_t KEY_REPEAT_TIME = 400; ///< Default time between repeats in in milliseconds
static const uint8_t KEY_ACTIVE_STATE = LOW; ///< Default key is active low - transition high to low detection
au lieu de:
protected:
// Default values for timed events.
// Note these are all from the same base (ie when the switch is first detected)
static const uint16_t KEY_PRESS_TIME = 250; ///< Default key press time in milliseconds
static const uint16_t KEY_DPRESS_TIME = 350; ///< Default double press time between presses in milliseconds
static const uint16_t KEY_LONGPRESS_TIME = 700; ///< Default long press detection time in milliseconds
static const uint16_t KEY_REPEAT_TIME = 400; ///< Default time between repeats in in milliseconds
static const uint8_t KEY_ACTIVE_STATE = LOW; ///< Default key is active low - transition high to low detection