From: jedin Date: Fri, 15 Aug 2003 14:15:36 +0000 (+0000) Subject: FIX: when reading key, was always getting key from keymap1. X-Git-Tag: ROMW~63 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=6f17e7d0c5d83ffca7376a1cff0ea5ff355dba8f;p=uccvend-snackrom.git FIX: when reading key, was always getting key from keymap1. --- diff --git a/ROM2/keypad.c b/ROM2/keypad.c index f4b20c2..4105b24 100644 --- a/ROM2/keypad.c +++ b/ROM2/keypad.c @@ -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;