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.
This commit is contained in:
Sascha 2022-07-01 14:29:39 +02:00
parent aba1c80cc5
commit b1b2675ca3

View File

@ -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;