Fix keypad frequency entry code

This commit is contained in:
Reed Nightingale 2020-01-21 22:59:48 -08:00
parent 1c099663fc
commit edbb17e4c4

View File

@ -397,7 +397,8 @@ void enterFreq(){
int cursor_pos = 0; int cursor_pos = 0;
memset(c, 0, sizeof(c)); memset(c, 0, sizeof(c));
while(1){ bool exit = false;
while(!exit){
checkCAT(); checkCAT();
if(btnDown()){ if(btnDown()){
@ -437,6 +438,7 @@ void enterFreq(){
} }
saveVFOs(); saveVFOs();
} }
exit = true;
break; break;
} }
@ -451,6 +453,7 @@ void enterFreq(){
} }
case KEYS_CANCEL: case KEYS_CANCEL:
{ {
exit = true;
break; break;
} }
case KEYS_0: case KEYS_0:
@ -483,7 +486,7 @@ void enterFreq(){
active_delay(300); active_delay(300);
while(readTouch()) while(readTouch())
checkCAT(); checkCAT();
} // end of event loop : while(1) } // end of event loop : while(!exit)
guiUpdate(); guiUpdate();
enc_read();//clear out any tuner turning that happened during entry enc_read();//clear out any tuner turning that happened during entry