mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
fix: unexpectedly cal reset on changing frequency range
This commit is contained in:
parent
b7fb2c390b
commit
0d36621411
3
main.c
3
main.c
|
|
@ -816,6 +816,7 @@ void
|
|||
set_sweep_frequency(int type, float frequency)
|
||||
{
|
||||
int32_t freq = frequency;
|
||||
int cal_applied = cal_status & CALSTAT_APPLY;
|
||||
switch (type) {
|
||||
case ST_START:
|
||||
freq_mode_startstop();
|
||||
|
|
@ -895,7 +896,7 @@ set_sweep_frequency(int type, float frequency)
|
|||
break;
|
||||
}
|
||||
|
||||
if (cal_auto_interpolate && (cal_status & CALSTAT_APPLY))
|
||||
if (cal_auto_interpolate && cal_applied)
|
||||
cal_interpolate(lastsaveid);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue