Make RXPS preamble adaptive for fast radio settings
This commit is contained in:
1 parent
444df2969d
commit
e7433abb80
31 files changed
+1393
-242
No files matched your search
@@ -1207,7 +1207,7 @@ void SensorMesh::loop() {
|
||||
bool timing_ok = true;
|
||||
if (_prefs.rx_powersaving_enabled && _prefs.rx_ps_level != 0) {
|
||||
uint32_t preamble = _prefs.rx_ps_preamble ? _prefs.rx_ps_preamble
|
||||
: (pending_sf <= 8 ? 32UL : 16UL);
|
||||
: rxPowerSavingPreambleForParams(pending_sf, pending_bw);
|
||||
timing_ok = CommonCLI::calculateRxPowerSavingLevel(
|
||||
_prefs.rx_ps_level, pending_sf, pending_bw, preamble, &rx_us, &sleep_us);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user