From b1b2675ca3d25c14c9012e3a6c1053028717338f Mon Sep 17 00:00:00 2001 From: Sascha Date: Fri, 1 Jul 2022 14:29:39 +0200 Subject: [PATCH] Lora band and fs from GLOBALS were ignored Fixed it by changing the order of the includes (as one references the other) and using FDRS_BAND and FDRS_SF in the constructor of the FDRSLora class. --- Universal_Sensor_beta/Universal_Sensor_beta.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Universal_Sensor_beta/Universal_Sensor_beta.ino b/Universal_Sensor_beta/Universal_Sensor_beta.ino index d8b0c7d..62e9f6e 100644 --- a/Universal_Sensor_beta/Universal_Sensor_beta.ino +++ b/Universal_Sensor_beta/Universal_Sensor_beta.ino @@ -8,10 +8,10 @@ // -#include "fdrs_sensor.h" #include "sensor_setup.h" +#include "fdrs_sensor.h" -FDRSLoRa FDRS(GTWY_MAC,READING_ID,MISO,MOSI,SCK,SS,RST,DIO0,BAND,SF); +FDRSLoRa FDRS(GTWY_MAC,READING_ID,MISO,MOSI,SCK,SS,RST,DIO0,FDRS_BAND,FDRS_SF); float data1; float data2;