From 59b9534a5c5fefea4d4cf526942aa6c082864b88 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Tue, 24 Mar 2020 11:04:34 +0300 Subject: [PATCH] Set minimum calibration bandwidth as BANDWIDTH_100 (can be greater if manually set) Need for speedup calibrate if need --- main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 8e068e1..669965a 100644 --- a/main.c +++ b/main.c @@ -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