mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-13 03:34:35 +00:00
Used correct to_string_short_freq instead of erroneous calculation
This commit is contained in:
parent
de99afa19b
commit
63f7be02b6
@ -443,9 +443,7 @@ namespace ui {
|
|||||||
|
|
||||||
void ReconView::set_display_freq( int64_t freq )
|
void ReconView::set_display_freq( int64_t freq )
|
||||||
{
|
{
|
||||||
int64_t freqMHz = ( freq / 1000000 );
|
big_display.set( "FREQ: "+to_string_short_freq( freq )+" MHz" );
|
||||||
int64_t freqMhzFloatingPart = ( freq - ( 1000000 * freqMHz ) ) / 100 ;
|
|
||||||
big_display.set( "FREQ: "+to_string_dec_int( freqMHz )+"."+to_string_dec_int( freqMhzFloatingPart )+" MHz" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ReconView::handle_retune( int64_t freq , uint32_t index ) {
|
void ReconView::handle_retune( int64_t freq , uint32_t index ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user