mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Merge pull request #915 from gullradriel/recon-update
Recon description flashing on range fix
This commit is contained in:
commit
a54b94fe53
@ -528,32 +528,28 @@ namespace ui {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
text_cycle.set_text( to_string_dec_uint( index + 1 , 3 ) );
|
||||||
|
if(frequency_list[index].description.size() > 0)
|
||||||
uint32_t freq_lock = recon_thread->is_freq_lock();
|
|
||||||
|
|
||||||
if( freq_lock == 0 ) {
|
|
||||||
//NO FREQ LOCK, ONGOING STANDARD SCANNING
|
|
||||||
if( index < 1000 && index < frequency_list.size() )
|
|
||||||
{
|
{
|
||||||
text_cycle.set_text( to_string_dec_uint( index + 1 , 3 ) );
|
switch( frequency_list[current_index].type )
|
||||||
if(frequency_list[index].description.size() > 0)
|
|
||||||
{
|
{
|
||||||
switch( frequency_list[current_index].type )
|
case RANGE:
|
||||||
{
|
desc_cycle.set( "R: " + frequency_list[current_index].description ); //Show new description
|
||||||
case RANGE:
|
break ;
|
||||||
desc_cycle.set( "R: " + frequency_list[current_index].description ); //Show new description
|
case HAMRADIO:
|
||||||
break ;
|
desc_cycle.set( "H: " + frequency_list[current_index].description ); //Show new description
|
||||||
case HAMRADIO:
|
break ;
|
||||||
desc_cycle.set( "H: " + frequency_list[current_index].description ); //Show new description
|
default:
|
||||||
break ;
|
case SINGLE:
|
||||||
default:
|
desc_cycle.set( "S: " + frequency_list[current_index].description ); //Show new description
|
||||||
case SINGLE:
|
break ;
|
||||||
desc_cycle.set( "S: " + frequency_list[current_index].description ); //Show new description
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t freq_lock = recon_thread->is_freq_lock();
|
||||||
|
if( freq_lock == 0 ) {
|
||||||
|
//NO FREQ LOCK, ONGOING STANDARD SCANNING
|
||||||
big_display.set_style(&style_white);
|
big_display.set_style(&style_white);
|
||||||
if( !userpause )
|
if( !userpause )
|
||||||
button_pause.set_text("<PAUSE>");
|
button_pause.set_text("<PAUSE>");
|
||||||
|
Loading…
Reference in New Issue
Block a user