diff --git a/multi_button.c b/multi_button.c index 51febe6..bf4037d 100644 --- a/multi_button.c +++ b/multi_button.c @@ -132,8 +132,8 @@ static void button_handler(struct Button* handle) } else { handle->state = 0; } - } else if(handle->ticks > SHORT_TICKS) { // long press up - handle->state = 0; + } else if(handle->ticks > SHORT_TICKS) { // SHORT_TICKS < press down hold time < LONG_TICKS + handle->state = 1; } break;