From 84bb8da036935599a5d5c73bc5726a8ccbab29b4 Mon Sep 17 00:00:00 2001 From: StevenCellist Date: Fri, 10 Nov 2023 16:32:29 +0100 Subject: [PATCH] [LoRaWAN] improve examples --- .../LoRaWAN_End_Device_persistent.ino | 8 -------- .../LoRaWAN_End_Device_reference.ino | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/examples/LoRaWAN/LoRaWAN_End_Device_persistent/LoRaWAN_End_Device_persistent.ino b/examples/LoRaWAN/LoRaWAN_End_Device_persistent/LoRaWAN_End_Device_persistent.ino index 6ccd484f..43275a7c 100644 --- a/examples/LoRaWAN/LoRaWAN_End_Device_persistent/LoRaWAN_End_Device_persistent.ino +++ b/examples/LoRaWAN/LoRaWAN_End_Device_persistent/LoRaWAN_End_Device_persistent.ino @@ -88,14 +88,6 @@ void setup() { Serial.println(state); while(true); } - - if(state == RADIOLIB_ERR_NONE) { - Serial.println(F("success!")); - } else { - Serial.print(F("failed, code ")); - Serial.println(state); - while(true); - } } diff --git a/examples/LoRaWAN/LoRaWAN_End_Device_reference/LoRaWAN_End_Device_reference.ino b/examples/LoRaWAN/LoRaWAN_End_Device_reference/LoRaWAN_End_Device_reference.ino index 29ec64fb..e72e977c 100644 --- a/examples/LoRaWAN/LoRaWAN_End_Device_reference/LoRaWAN_End_Device_reference.ino +++ b/examples/LoRaWAN/LoRaWAN_End_Device_reference/LoRaWAN_End_Device_reference.ino @@ -152,7 +152,7 @@ void loop() { String strUp = "Hello World! #" + String(fcntUp); // send a confirmed uplink to port 10 every 64th frame - if(fcntUp / 64 == 0) { + if(fcntUp % 64 == 0) { state = node.uplink(strUp, 10, true); } else { state = node.uplink(strUp, 10);