Make RXPS preamble adaptive for fast radio settings

This commit is contained in:
mikecarper
2026-08-24 20:42:54 -07:00
parent 444df2969d
commit e7433abb80
31 changed files with 1393 additions and 242 deletions
+1 -1
View File
@@ -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);
}