]> oss.titaniummirror.com Git - rgblamp.git/blobdiff - btn.c
Debounce for 64 ms instead of 32 ms
[rgblamp.git] / btn.c
diff --git a/btn.c b/btn.c
index 7b3c75e70ff4593627c05b6179340c4affe29f44..84a73aaedfadedc6b70e252153442175f3ebcfcd 100644 (file)
--- a/btn.c
+++ b/btn.c
@@ -29,22 +29,22 @@ void btn_isr()
 {
   if (IOCIF) {
     if (IOCBF0) {
-      _btn_pbdis();
-      tmr_start(TMR_BTN_PB, 1);
+      btn_pbdis();
+      tmr_start(TMR_BTN_PB, 2);
     }
     if (IOCBF4) {
-      _btn_rsdis();
-      tmr_start(TMR_BTN_RS, 1);
+      btn_rsdis();
+      tmr_start(TMR_BTN_RS, 2);
     }
     if (IOCBF5) {
-      _btn_rsdis();
-      tmr_start(TMR_BTN_RS, 1);
+      btn_rsdis();
+      tmr_start(TMR_BTN_RS, 2);
     }
   }
 
   if (tmr_fired(TMR_BTN_PB))
-    _task_post(TASK_BTN_PB);
+    task_post(TASK_BTN_PB);
   if (tmr_fired(TMR_BTN_RS))
-    _task_post(TASK_BTN_RS);
+    task_post(TASK_BTN_RS);
 }