diff --git a/multi_button.c b/multi_button.c index d1861e3..5a213b4 100644 --- a/multi_button.c +++ b/multi_button.c @@ -143,8 +143,8 @@ static void button_handler(struct Button* handle) handle->event = (uint8_t)LONG_PRESS_HOLD; EVENT_CB(LONG_PRESS_HOLD); } else { //releasd - handle->event = (uint8_t)PRESS_UP; - EVENT_CB(PRESS_UP); + handle->event = (uint8_t)LONG_PRESS_CLICK; + EVENT_CB(LONG_PRESS_CLICK); handle->state = 0; //reset } break; diff --git a/multi_button.h b/multi_button.h index a5bfc99..fd510f2 100644 --- a/multi_button.h +++ b/multi_button.h @@ -26,6 +26,7 @@ typedef enum { DOUBLE_CLICK, LONG_PRESS_START, LONG_PRESS_HOLD, + LONG_PRESS_CLICK, number_of_event, NONE_PRESS }PressEvent;