mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-08 05:31:25 +00:00
Merge pull request #5112 from meshtastic/preamble-length
Wide_Lora uses 12 symbols to be compatible with SX1280
This commit is contained in:
commit
82bcd503a3
@ -67,8 +67,10 @@ template <typename T> bool LR11x0Interface<T>::init()
|
|||||||
power = LR1110_MAX_POWER;
|
power = LR1110_MAX_POWER;
|
||||||
|
|
||||||
if ((power > LR1120_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;
|
power = LR1120_MAX_POWER;
|
||||||
|
preambleLength = 12; // 12 is the default for operation above 2GHz
|
||||||
|
}
|
||||||
|
|
||||||
limitPower();
|
limitPower();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user