Set auto reflevel of onsetting scale

tinySA-v0.2
erikkaashoek 6 years ago
parent 70cb7cbe5a
commit d3d2c2104f

@ -1952,9 +1952,9 @@ void draw_cal_status(void)
ili9341_set_foreground(color); ili9341_set_foreground(color);
y += YSTEP + YSTEP/2 ; y += YSTEP + YSTEP/2 ;
if (MODE_LOW(setting.mode)) if (MODE_LOW(setting.mode))
ili9341_drawstring_7x13("M:L", x, y); ili9341_drawstring_7x13("LOW", x, y);
else else
ili9341_drawstring_7x13("M:H", x, y); ili9341_drawstring_7x13("HIGH", x, y);
y = HEIGHT-7 + OFFSETY; y = HEIGHT-7 + OFFSETY;

@ -1790,6 +1790,8 @@ set_numeric_value(void)
set_sweep_frequency(ST_CW, uistat.value); set_sweep_frequency(ST_CW, uistat.value);
break; break;
case KM_SCALE: case KM_SCALE:
if (UNIT_IS_LINEAR(setting.unit))
set_auto_reflevel(false);
set_scale(uistat.value); set_scale(uistat.value);
break; break;
case KM_REFPOS: case KM_REFPOS:

Loading…
Cancel
Save

Powered by TurnKey Linux.