mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2025-01-28 12:46:28 -05:00
Update side band when band buttons are used
This commit is contained in:
parent
a0abe466c0
commit
b655704264
10
ubitx_ui.cpp
10
ubitx_ui.cpp
@ -744,7 +744,15 @@ void switchBand(uint32_t bandfreq){
|
|||||||
//Serial.println(offset);
|
//Serial.println(offset);
|
||||||
|
|
||||||
setFrequency(bandfreq + offset);
|
setFrequency(bandfreq + offset);
|
||||||
updateDisplay();
|
|
||||||
|
if(bandfreq >= THRESHOLD_USB_LSB){
|
||||||
|
SetActiveVfoMode(VfoMode_e::VFO_MODE_USB);
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
SetActiveVfoMode(VfoMode_e::VFO_MODE_LSB);
|
||||||
|
}
|
||||||
|
|
||||||
|
updateDisplay();
|
||||||
saveVFOs();
|
saveVFOs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user