mirror of
https://codeberg.org/mclemens/ubitxv6.git
synced 2024-09-05 01:14:29 -04:00
Use unsigned ints for frequency
This commit is contained in:
parent
fe1b8cfa34
commit
95ea5b0ee2
@ -416,11 +416,11 @@ void enterFreq(){
|
|||||||
switch(button.id){
|
switch(button.id){
|
||||||
case KEYS_OK:
|
case KEYS_OK:
|
||||||
{
|
{
|
||||||
long new_freq = atol(c);
|
uint32_t new_freq = atol(c);
|
||||||
if((LOWEST_FREQ/1000 <= new_freq) && (new_freq <= HIGHEST_FREQ/1000)){
|
if((LOWEST_FREQ/1000 <= new_freq) && (new_freq <= HIGHEST_FREQ/1000)){
|
||||||
new_freq *= 1000L;
|
new_freq *= 1000L;
|
||||||
|
|
||||||
long prev_freq = GetActiveVfoFreq();
|
uint32_t prev_freq = GetActiveVfoFreq();
|
||||||
//Transition from below to above the traditional threshold for USB
|
//Transition from below to above the traditional threshold for USB
|
||||||
if(prev_freq < THRESHOLD_USB_LSB && new_freq >= THRESHOLD_USB_LSB){
|
if(prev_freq < THRESHOLD_USB_LSB && new_freq >= THRESHOLD_USB_LSB){
|
||||||
SetActiveVfoMode(VfoMode_e::VFO_MODE_USB);
|
SetActiveVfoMode(VfoMode_e::VFO_MODE_USB);
|
||||||
|
Loading…
Reference in New Issue
Block a user