From afd2e0d7bdab27e813168d8a59cb87b2335b4c0b Mon Sep 17 00:00:00 2001 From: Jaup <270995079@qq.com> Date: Tue, 30 Aug 2016 10:02:17 +0000 Subject: [PATCH] init --- button.c | 4 ++-- button.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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