mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-01-20 15:20:19 +01:00
feat: interpolate CAL from current saved file
This commit is contained in:
parent
deca1a2a74
commit
8fdedea919
2
main.c
2
main.c
|
|
@ -567,7 +567,7 @@ update_frequencies(void)
|
|||
frequencies[i] = start + span * i / (sweep_points - 1) * 100;
|
||||
|
||||
if (cal_auto_interpolate)
|
||||
cal_interpolate(0);
|
||||
cal_interpolate(lastsaveid);
|
||||
|
||||
update_marker_index();
|
||||
|
||||
|
|
|
|||
5
plot.c
5
plot.c
|
|
@ -1373,12 +1373,11 @@ draw_cal_status(void)
|
|||
ili9341_fill(0, y, 10, 6*YSTEP, 0x0000);
|
||||
if (cal_status & CALSTAT_APPLY) {
|
||||
char c[3] = "C0";
|
||||
c[1] += lastsaveid;
|
||||
if (cal_status & CALSTAT_INTERPOLATED)
|
||||
c[0] = 'c';
|
||||
if (active_props == ¤t_props)
|
||||
else if (active_props == ¤t_props)
|
||||
c[1] = '*';
|
||||
else
|
||||
c[1] += lastsaveid;
|
||||
ili9341_drawstring_5x7(c, x, y, 0xffff, 0x0000);
|
||||
y += YSTEP;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue