Skip to content

Commit

Permalink
fix inquire event conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1abin committed Sep 30, 2016
1 parent 13841d0 commit 8821a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/event_inquire.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ int main()
if(btn1_event_val != get_button_event(&btn1)) {
btn1_event_val = get_button_event(&btn1);

if(btn1_event_val == SINGLE_CLICK) {
if(btn1_event_val == PRESS_DOWN) {
//do something
} else if(btn1_event_val == DOUBLE_CLICK) {
} else if(btn1_event_val == PRESS_UP) {
//do something
} else if(btn1_event_val == LONG_RRESS_START) {
} else if(btn1_event_val == LONG_PRESS_HOLD) {
//do something
}
}
Expand Down

0 comments on commit 8821a11

Please sign in to comment.