Merge pull request #5112 from meshtastic/preamble-length

Wide_Lora uses 12 symbols to be compatible with SX1280
This commit is contained in:
Thomas Göttgens 2024-10-20 22:06:06 +02:00 committed by GitHub
commit 82bcd503a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,8 +67,10 @@ template <typename T> bool LR11x0Interface<T>::init()
power = LR1110_MAX_POWER;
if ((power > LR1120_MAX_POWER) &&
(config.lora.region == meshtastic_Config_LoRaConfig_RegionCode_LORA_24)) // clamp again if wide freq range
(config.lora.region == meshtastic_Config_LoRaConfig_RegionCode_LORA_24)) { // clamp again if wide freq range
power = LR1120_MAX_POWER;
preambleLength = 12; // 12 is the default for operation above 2GHz
}
limitPower();