diff --git a/button.c b/button.c index 58911d8..3d52a84 100644 --- a/button.c +++ b/button.c @@ -2,7 +2,7 @@ * Copyright (c) 2016 Zibin Zheng * All rights reserved */ - + #include "button.h" //MultiButton @@ -110,7 +110,7 @@ void button_handler(struct Button* handle) } else if(handle->button_level == handle->active_level) { //press again handle->state = 3; } - break; + break; case 3: //repeat press pressing if(handle->button_level != handle->active_level) { //double releasd diff --git a/button.h b/button.h index 2193176..9c528aa 100644 --- a/button.h +++ b/button.h @@ -26,7 +26,6 @@ struct Button { struct Button* next; }; - #ifdef __cplusplus extern "C" { #endif