Wow. It's missing the next led page button function. :/
Replace the primaryButtonFunctions declaration up near the top with this:
Code:
const fptype primaryButtonFunctions [numPrimaryPages] [numPrimaryButtons] = { {&buttonVoidAction, &buttonVoidAction, &buttonVoidAction, &buttonLEDNextPage, &buttonPrimaryNextPage},
{&buttonVoidAction, &buttonResetInjCumulative, &buttonVoidAction, &buttonLEDNextPage, &buttonPrimaryNextPage},
{&buttonVoidAction, &buttonResetVssPulseCount, &buttonVoidAction, &buttonLEDNextPage, &buttonPrimaryNextPage} };
and put this in with the button press functions:
Code:
void buttonLEDNextPage()
{
currentLEDPage++;
if(currentLEDPage >= numLEDpages) {currentLEDPage = 0;}
}