We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d05d6ab commit 86edfe2Copy full SHA for 86edfe2
1 file changed
src/helpers/radiolib/RadioLibWrappers.cpp
@@ -57,8 +57,11 @@ void RadioLibWrapper::resetAGC() {
57
// make sure we're not mid-receive of packet!
58
if ((state & STATE_INT_READY) != 0 || isReceivingPacket()) return;
59
60
- // NOTE: according to higher powers, just issuing RadioLib's startReceive() will reset the AGC.
61
- // revisit this if a better impl is discovered.
+ // Warm sleep powers down the entire analog frontend (including AGC), forcing a
+ // fresh gain calibration on the next startReceive(). A plain standby->startReceive
62
+ // cycle does NOT reset the AGC — the analog state can persist across STDBY_RC.
63
+ // The ~1-2 ms sleep gap is negligible vs the preamble budget (131 ms at SF11/BW250).
64
+ _radio->sleep();
65
state = STATE_IDLE; // trigger a startReceive()
66
}
67
0 commit comments