From 7c083e07965c8d7015733bfd9f2773cdcfe79964 Mon Sep 17 00:00:00 2001 From: Branden Ghena Date: Thu, 2 Mar 2023 22:28:40 -0600 Subject: [PATCH] Fix args to begin() in SX12xx settings examples --- examples/SX126x/SX126x_Settings/SX126x_Settings.ino | 2 +- examples/SX128x/SX128x_Settings/SX128x_Settings.ino | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/SX126x/SX126x_Settings/SX126x_Settings.ino b/examples/SX126x/SX126x_Settings/SX126x_Settings.ino index 7777c75d..530c49ab 100644 --- a/examples/SX126x/SX126x_Settings/SX126x_Settings.ino +++ b/examples/SX126x/SX126x_Settings/SX126x_Settings.ino @@ -74,7 +74,7 @@ void setup() { // sync word: 0x34 (public network/LoRaWAN) // output power: 2 dBm // preamble length: 20 symbols - state = radio2.begin(915.0, 500.0, 6, 5, 0x34, 20); + state = radio2.begin(915.0, 500.0, 6, 5, 0x34, 2, 20); if (state == RADIOLIB_ERR_NONE) { Serial.println(F("success!")); } else { diff --git a/examples/SX128x/SX128x_Settings/SX128x_Settings.ino b/examples/SX128x/SX128x_Settings/SX128x_Settings.ino index 36b02da1..1bd5f8fc 100644 --- a/examples/SX128x/SX128x_Settings/SX128x_Settings.ino +++ b/examples/SX128x/SX128x_Settings/SX128x_Settings.ino @@ -65,9 +65,10 @@ void setup() { // bandwidth: 1625.0 kHz // spreading factor: 7 // coding rate: 5 + // sync word: 0x12 (private network) // output power: 2 dBm // preamble length: 20 symbols - state = radio2.begin(2450.0, 1625.0, 7, 5, 2, 20); + state = radio2.begin(2450.0, 1625.0, 7, 5, 0x12, 2, 20); if (state == RADIOLIB_ERR_NONE) { Serial.println(F("success!")); } else {