Cleaned up initializations
[uccvend-snackrom.git] / ROM2 / keypad.c
index cc6093d..980b234 100644 (file)
@@ -3,7 +3,7 @@
 #include "keypad.h"
 
 u8 last_key; /* the last key registered */
-bool new_key = 0;
+bool new_key;
 
 /* first 8 from the first row, then 3 from the second row */
 /* keys are 1-9, 0, reset */
@@ -62,3 +62,8 @@ bool keypad_pressed() {
        new_key = 0;
        return 1;
 }
+
+void keypad_init() {
+       last_key = 0;
+       new_key = 0;
+}

UCC git Repository :: git.ucc.asn.au