Set minimum calibration bandwidth as BANDWIDTH_100 (can be greater if manually set)

Need for speedup calibrate if need
This commit is contained in:
DiSlord 2020-03-24 11:04:34 +03:00
parent 48e28f79d0
commit 59b9534a5c

5
main.c
View file

@ -1330,9 +1330,10 @@ cal_collect(int type)
default:
return;
}
// Run sweep for collect data (use maximum bandwidth setting)
// Run sweep for collect data (use minimum BANDWIDTH_100, or bigger if set)
uint8_t bw = bandwidth; // store current setting
bandwidth = BANDWIDTH_10;
if (bw < BANDWIDTH_100)
bandwidth = BANDWIDTH_100;
sweep(false);
bandwidth = bw; // restore
// Copy calibration data