FIX: when reading key, was always getting key from keymap1.
authorjedin <jedin>
Fri, 15 Aug 2003 14:15:36 +0000 (14:15 +0000)
committerjedin <jedin>
Fri, 15 Aug 2003 14:15:36 +0000 (14:15 +0000)
ROM2/keypad.c

index f4b20c2..4105b24 100644 (file)
@@ -36,9 +36,9 @@ void keypad_read() {
        key = keypad_read_row(0);
        if (!key) {
                key = keypad_read_row(1);
+               key = keymap1[key];
+       } else
                key = keymap0[key];
-       }
-       key = keymap1[key];
 
        if (key != last_key) {
                last_key = key;

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