Remove not used variable

Small simplify code
pull/4/head
DiSlord 6 years ago
parent 8f2bcc0d73
commit 76edcbf64b

@ -30,8 +30,7 @@
#ifdef __SCROLL__ #ifdef __SCROLL__
uint16_t _grid_y = NOSCROLL_GRIDY; uint16_t _grid_y = NOSCROLL_GRIDY;
int waterfall = false; static int waterfall = false;
int fullscreen = true;
#endif #endif
static void cell_draw_marker_info(int x0, int y0); static void cell_draw_marker_info(int x0, int y0);
static void cell_grid_line_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; _grid_y = SCROLL_GRIDY;
ili9341_fill(OFFSETX, HEIGHT_SCROLL, LCD_WIDTH - OFFSETX, HEIGHT_NOSCROLL - HEIGHT_SCROLL, 0); ili9341_fill(OFFSETX, HEIGHT_SCROLL, LCD_WIDTH - OFFSETX, HEIGHT_NOSCROLL - HEIGHT_SCROLL, 0);
waterfall = true; waterfall = true;
fullscreen = false;
w_min = (int)min_level; w_min = (int)min_level;
w_max = (int)peakLevel; w_max = (int)peakLevel;
if (w_max < w_min + 20) if (w_max < w_min + 20)
@ -2299,7 +2297,6 @@ toggle_waterfall(void)
} else { } else {
_grid_y = NOSCROLL_GRIDY; _grid_y = NOSCROLL_GRIDY;
waterfall = false; waterfall = false;
fullscreen = true;
} }
request_to_redraw_grid(); request_to_redraw_grid();
} }

@ -1508,12 +1508,8 @@ pureRSSI_t perform(bool break_on_operation, int i, uint32_t f, int tracking)
if (MODE_HIGH(setting.mode)) if (MODE_HIGH(setting.mode))
local_IF = 0; local_IF = 0;
else { else {
if (setting.auto_IF) { if (setting.auto_IF)
if (setting.spur) local_IF = setting.spur ? 433900000 : 433800000;
local_IF = 433900000;
else
local_IF = 433800000;
}
else else
local_IF = setting.frequency_IF; local_IF = setting.frequency_IF;
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.