Skip to content

Commit

Permalink
Merge pull request #5112 from meshtastic/preamble-length
Browse files Browse the repository at this point in the history
Wide_Lora uses 12 symbols to be compatible with SX1280
  • Loading branch information
caveman99 authored Oct 20, 2024
2 parents 2ba72c1 + 18ca5b4 commit 82bcd50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mesh/LR11x0Interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 82bcd50

Please sign in to comment.