mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-23 12:12:46 +00:00
rx_boost state is undefined at boot (minor fix)
every LBT-retried flood packet loses its priority (fixed) witching between LBT and non-LBT mode (or any cad.mode change) could silently skip full reconfiguration and leave the radio in the wrong mode (fixed)
This commit is contained in:
1 parent
66f7b8508f
commit
6919c3511c
5 files changed
+36
-3
No files matched your search
@@ -256,7 +256,8 @@ static bool configParamsEqual(const struct lora_modem_config &a,
|
||||
a.tx_power == b.tx_power &&
|
||||
a.tx == b.tx &&
|
||||
a.iq_inverted == b.iq_inverted &&
|
||||
a.public_network == b.public_network;
|
||||
a.public_network == b.public_network &&
|
||||
a.cad.mode == b.cad.mode;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -275,6 +276,7 @@ static bool onlyDirectionDiffers(const struct lora_modem_config &a,
|
||||
a.tx_power == b.tx_power &&
|
||||
a.iq_inverted == b.iq_inverted &&
|
||||
a.public_network == b.public_network &&
|
||||
a.cad.mode == b.cad.mode &&
|
||||
a.tx != b.tx;
|
||||
}
|
||||
|
||||
@@ -363,6 +365,13 @@ void LoRaRadioBase::begin()
|
||||
|
||||
startReceive();
|
||||
|
||||
/* Sync _rx_boost_enabled to the driver. The driver initialises its own
|
||||
* rx_boost_enabled flag from DTS (rx-boosted property), which may differ
|
||||
* from our constructor default (true). Push our intent now so the
|
||||
* hardware state matches _rx_boost_enabled from the moment begin()
|
||||
* returns, before the caller applies prefs via setRxBoost(). */
|
||||
hwSetRxBoost(_rx_boost_enabled);
|
||||
|
||||
uint32_t freq = _prefs ? (uint32_t)(_prefs->freq * 1000000.0f)
|
||||
: LoRaConfig::FREQ_HZ;
|
||||
uint8_t sf = _prefs ? _prefs->sf : LoRaConfig::SPREADING_FACTOR;
|
||||
|
||||
Reference in new issue
Block a user