From 2dff65eb41d345b4ac0115391aa87e5cde2463ef Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 26 Jan 2015 23:26:04 +0100 Subject: added message for when manual button has been pressed --- tuer-rfid/manual.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tuer-rfid/manual.c b/tuer-rfid/manual.c index b204d0c..6d338ba 100644 --- a/tuer-rfid/manual.c +++ b/tuer-rfid/manual.c @@ -22,6 +22,7 @@ */ #include +#include #include "manual.h" #include "eventqueue.h" @@ -50,8 +51,10 @@ void manual_task(void) lp_cnt += lp_cnt ? -1 : 0; if(lp_cnt >= MANUAL_LP_MAX) { - if(!state) + if(!state) { eventqueue_push(btn_toggle); + printf("Info(manual): manual button has been pressed\r\n"); + } last_state = state; lp_cnt = 0; } -- cgit v1.2.3