From 81dc532d2d041466f2e815f5b9e97a856c47073c Mon Sep 17 00:00:00 2001 From: Justin Beaurivage Date: Sun, 20 Nov 2022 16:08:43 -0500 Subject: [PATCH] Fix LoRaWAN PHY settings for SX126x driver * Set preamble length to 8 symbols * Set polarity to inverted for received messages --- embassy-lora/src/sx126x/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embassy-lora/src/sx126x/mod.rs b/embassy-lora/src/sx126x/mod.rs index ed8cb405..b14d422a 100644 --- a/embassy-lora/src/sx126x/mod.rs +++ b/embassy-lora/src/sx126x/mod.rs @@ -87,7 +87,7 @@ where config.rf.spreading_factor.into(), config.rf.bandwidth.into(), config.rf.coding_rate.into(), - 4, + 8, false, true, false, @@ -119,14 +119,14 @@ where config.spreading_factor.into(), config.bandwidth.into(), config.coding_rate.into(), - 4, + 8, 4, false, 0u8, true, false, 0, - false, + true, true, ) .await?;