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.
pull/34/head
Sascha 2 years ago
parent aba1c80cc5
commit b1b2675ca3

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

Loading…
Cancel
Save