diff --git a/impl/src/layer1/rx.c b/impl/src/layer1/rx.c index 81084b1..f33b5d9 100644 --- a/impl/src/layer1/rx.c +++ b/impl/src/layer1/rx.c @@ -163,7 +163,9 @@ static enum squelch_state_t update_and_check_squelch(layer1_rx_t *rx, unsigned i if(level < rx->noise_floor_level) { rx->noise_floor_level = level; } else { - level += 1e-4f; // slowly increase the measured noise floor level to compensate for drift + // Slowly increase the measured noise floor level to compensate for drift. + // Adjustment value is in dB. + rx->noise_floor_level += 1e-4f; } agc_crcf_squelch_set_threshold(rx->agc, rx->noise_floor_level + 10.0f); // in dB }