kiss_modem: keep FEM replies ordered and deliverable; drop Wio FEM control

- Wio Tracker L1 1W no longer advertises TX gain control: its setter
  drives LORA_PWR_EN, the shared LDO for the SX1262 and the PA, so
  "gain off" would power down the radio.
- A SetFemState that arrives mid-TX is now applied after TxDone is
  queued, so its reply follows TxDone.
- SetFemState replies (immediate or deferred) are retained until they
  fit in the host output queue instead of being dropped, so a change
  that took effect is always acknowledged.
- GetFemState replies queue behind an outstanding SetFemState reply;
  a further SetFemState returns TxBusy until it clears.
This commit is contained in:
agessaman committed 2026-09-23 16:11:29 -07:00
1 parent a087a5198f
commit 0d648e4a18
5 files changed
+131 -32

No files matched your search

@@ -10,14 +10,14 @@ protected:
bool _is_pa_enabled = false;
KeyValueStore* _prefs = NULL;
bool setLoRaFemPaGainEnabled(bool enable);
bool isLoRaFemPaGainEnabled() const { return _is_pa_enabled; }
public:
WioTrackerL1Board() : NRF52Board("WioTrackerL1 OTA") {}
void begin();
void attachDynamicPrefs(KeyValueStore* prefs);
bool handleCommand(const char* command, uint32_t sender_timestamp, char* reply) override;
bool canControlLoRaFemPaGain() const override { return true; }
bool setLoRaFemPaGainEnabled(bool enable) override;
bool isLoRaFemPaGainEnabled() const override { return _is_pa_enabled; }
#if defined(P_LORA_TX_LED)
void onBeforeTransmit() override {