mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-11-20 00:46:06 -05:00
Fix keypad frequency entry code
This commit is contained in:
parent
1c099663fc
commit
edbb17e4c4
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user