Code:
if (!(timerStatus & tsButtonsUp)) { // see if any buttons were pressed, display a brief message if so
j = buttonState;
timerStatus |= tsButtonsUp; // reset keypress flag
bpPtr = (PGM_P)pgm_read_word(&buttonPressAdrList[(unsigned int)(menuLevel)]);
while (true) {
i = pgm_read_byte(bpPtr++);
if ((i == buttonsUp) || (j == i)) break;
bpPtr++;
}
gotoXY(0, 0);
if (j != buttonsUp) callFuncPointer((char *)(bpPtr)); // go perform action
}
This is near the end of the code. The boldfaced things are the things that need changed.