/* first 8 from the first row, then 3 from the second row */
/* keys are 1-9, 0, reset */
-//const u8 keymap0[8] = {KEY_8, KEY_7, KEY_6, KEY_5, KEY_4, KEY_3, KEY_2, KEY_1};
-//const u8 keymap1[3] = {KEY_RESET, KEY_0, KEY_9};
const u8 keymap0[8] = {KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8};
const u8 keymap1[3] = {KEY_9, KEY_0, KEY_RESET};
/* reads the keypad and returns the bit number that was turned on in the shift
* register (from 0..7). If no bits were turned on, it returns 8 (aka NO_KEY)
*/
-extern inline u8 keypad_read_row(u8 row) {
+extern inline u8 keypad_read_row(const u8 row) {
u8 i, num;
if (row)