diff options
Diffstat (limited to 'controller/fw/src')
-rw-r--r-- | controller/fw/src/freq_meas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/fw/src/freq_meas.c b/controller/fw/src/freq_meas.c index 6b9b54e..035ffd4 100644 --- a/controller/fw/src/freq_meas.c +++ b/controller/fw/src/freq_meas.c @@ -137,7 +137,7 @@ int adc_buf_measure_freq(uint16_t adc_buf[FMEAS_FFT_LEN], float *out) { DEBUG_PRINT("done."); */ float res = (par[1] + first_bin) * binsize_hz; - if (res < 5 || res > 150) { + if (par[1] < 2 || res < 5 || res > 150 || par[0] < 1) { *out = NAN; return -1; } |