radiolib: reapply runtime RX boosted gain on SX126x AGC reset

sx126xResetAGC only restored the gain when the build defined
SX126X_RX_BOOSTED_GAIN, so a gain set at runtime was lost on reset.
Match lr11x0ResetAGC and always reapply. Also pass the gain state from
the LLCC68 wrapper, whose call did not match the helper's signature.
This commit is contained in:
agessaman committed 2026-09-23 21:56:27 -07:00
1 parent bc4d0227fe
commit 990ea55e2d
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ public:
}
uint8_t getSpreadingFactor() const override { return ((CustomLLCC68 *)_radio)->spreadingFactor; }
void doResetAGC() override { sx126xResetAGC((SX126x *)_radio); }
void doResetAGC() override { sx126xResetAGC((SX126x *)_radio, getRxBoostedGainMode()); }
bool supportsRxBoostedGain() const override { return true; }
bool setRxBoostedGainMode(bool en) override {