From 76edcbf64bd919868c4a3166b00c93001454d872 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Wed, 8 Jul 2020 23:14:20 +0300 Subject: [PATCH] Remove not used variable Small simplify code --- plot.c | 5 +---- sa_core.c | 8 ++------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/plot.c b/plot.c index c5888e0..7239f09 100644 --- a/plot.c +++ b/plot.c @@ -30,8 +30,7 @@ #ifdef __SCROLL__ uint16_t _grid_y = NOSCROLL_GRIDY; -int waterfall = false; -int fullscreen = true; +static int waterfall = false; #endif static void cell_draw_marker_info(int x0, int y0); static void cell_grid_line_info(int x0, int y0); @@ -2290,7 +2289,6 @@ toggle_waterfall(void) _grid_y = SCROLL_GRIDY; ili9341_fill(OFFSETX, HEIGHT_SCROLL, LCD_WIDTH - OFFSETX, HEIGHT_NOSCROLL - HEIGHT_SCROLL, 0); waterfall = true; - fullscreen = false; w_min = (int)min_level; w_max = (int)peakLevel; if (w_max < w_min + 20) @@ -2299,7 +2297,6 @@ toggle_waterfall(void) } else { _grid_y = NOSCROLL_GRIDY; waterfall = false; - fullscreen = true; } request_to_redraw_grid(); } diff --git a/sa_core.c b/sa_core.c index 0746391..1e3c3d8 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1508,12 +1508,8 @@ pureRSSI_t perform(bool break_on_operation, int i, uint32_t f, int tracking) if (MODE_HIGH(setting.mode)) local_IF = 0; else { - if (setting.auto_IF) { - if (setting.spur) - local_IF = 433900000; - else - local_IF = 433800000; - } + if (setting.auto_IF) + local_IF = setting.spur ? 433900000 : 433800000; else local_IF = setting.frequency_IF; }