diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-01-26 23:26:04 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-01-26 23:26:04 +0100 |
commit | 2dff65eb41d345b4ac0115391aa87e5cde2463ef (patch) | |
tree | 1e1436e9ea79b31fdaadc9303b8707b3102df969 /tuer-rfid/manual.c | |
parent | fixed wrong timer register usage (diff) |
added message for when manual button has been pressed
Diffstat (limited to 'tuer-rfid/manual.c')
-rw-r--r-- | tuer-rfid/manual.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <avr/io.h> +#include <stdio.h> #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; } |