Skip to content

fix(radio): recalibrate noise floor after AGC reset - #15

Merged
IoTThinks merged 2 commits into
IoTThinks:PowerSaving-v17from
Dom4n:fix/powersaving-v17-noise-floor-after-agc-reset
Aug 18, 2026
Merged

fix(radio): recalibrate noise floor after AGC reset#15
IoTThinks merged 2 commits into
IoTThinks:PowerSaving-v17from
Dom4n:fix/powersaving-v17-noise-floor-after-agc-reset

Conversation

@Dom4n

@Dom4n Dom4n commented Aug 18, 2026

Copy link
Copy Markdown

Recalculates the noise floor immediately after an AGC reset, preventing temporary zero readings. Sampling preserves active packet reception and never restarts RX while a packet is in progress.

// Recalibrate synchronously so callers never observe the temporary zero
// used to bypass a stale sampling threshold after an AGC reset.
const int16_t previous_noise_floor = _noise_floor;
_noise_floor = 0;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the culpit.
Even with this PR, there will be a very slim chance to see noisefloor 0.

IMO, I will experiment a different default noise floor if someone still sess noise floor 0.

@IoTThinks
IoTThinks merged commit 1122203 into IoTThinks:PowerSaving-v17 Aug 18, 2026
1 check passed
@IoTThinks

Copy link
Copy Markdown
Owner

I have merged it and will test on my test kits.
Thanks a lot for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants