From 63f7be02b6fec99c864c0d1a78b98d5d669771e9 Mon Sep 17 00:00:00 2001 From: GullCode Date: Fri, 28 Apr 2023 12:57:00 +0200 Subject: [PATCH] Used correct to_string_short_freq instead of erroneous calculation --- firmware/application/apps/ui_recon.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/firmware/application/apps/ui_recon.cpp b/firmware/application/apps/ui_recon.cpp index 38b49563f..fe1d08ce5 100644 --- a/firmware/application/apps/ui_recon.cpp +++ b/firmware/application/apps/ui_recon.cpp @@ -443,9 +443,7 @@ namespace ui { void ReconView::set_display_freq( int64_t freq ) { - int64_t freqMHz = ( freq / 1000000 ); - int64_t freqMhzFloatingPart = ( freq - ( 1000000 * freqMHz ) ) / 100 ; - big_display.set( "FREQ: "+to_string_dec_int( freqMHz )+"."+to_string_dec_int( freqMhzFloatingPart )+" MHz" ); + big_display.set( "FREQ: "+to_string_short_freq( freq )+" MHz" ); } void ReconView::handle_retune( int64_t freq , uint32_t index ) {