summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-01-26 23:26:04 +0100
committerChristian Pointner <equinox@spreadspace.org>2015-01-26 23:26:04 +0100
commit2dff65eb41d345b4ac0115391aa87e5cde2463ef (patch)
tree1e1436e9ea79b31fdaadc9303b8707b3102df969
parentfixed wrong timer register usage (diff)
added message for when manual button has been pressed
-rw-r--r--tuer-rfid/manual.c5
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;
}