X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=BaseTinyFirmware%2FGCC%2Fmain.c;h=919c965b84fa78434f958e619f7b3df51fdc6fe4;hb=0baf0366ad1924563e53f3d839d69730c7b14a44;hp=62f46d3060f862836ef04720e0c1c1889c1f5e11;hpb=5b95e754a4af80c7389486ee874ac07c166a0867;p=avr_bc100.git diff --git a/BaseTinyFirmware/GCC/main.c b/BaseTinyFirmware/GCC/main.c index 62f46d3..919c965 100644 --- a/BaseTinyFirmware/GCC/main.c +++ b/BaseTinyFirmware/GCC/main.c @@ -108,8 +108,8 @@ int main( void ) // Look for function associated with current state, get its address. for (i = 0; pgm_read_byte(&menu_state[i].state) != 0; i++) { - if (pgm_read_byte(&menu_state[i].state) == CurrentState) { - pStateFunc = (PGM_VOID_P) pgm_read_word(&menu_state[i].pFunc); + if (pgm_read_byte(&menu_state[i].state) == CurrentState) { + pStateFunc = (PGM_VOID_P) pgm_read_word(&menu_state[i].pFunc); } } @@ -123,8 +123,8 @@ int main( void ) if (nextstate != CurrentState) { CurrentState = nextstate; for ( i = 0; pgm_read_byte(&menu_state[i].state) != 0; i++) { - if (pgm_read_byte(&menu_state[i].state) == CurrentState) { - pStateFunc = (PGM_VOID_P) pgm_read_word(&menu_state[i].pFunc); + if (pgm_read_byte(&menu_state[i].state) == CurrentState) { + pStateFunc = (PGM_VOID_P) pgm_read_word(&menu_state[i].pFunc); } } }