File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ bool RadioConfig::loadConfig() {
53
53
getConfig (" RFM95_INT" , DEFAULT_RFM95_INT)));
54
54
return true ;
55
55
} else {
56
+ SD_CHIP_SELECT_PIN = (uint32_t )(atoi (DEFAULT_SD_CHIP_SELECT_PIN));
57
+ RFM95_CS = (uint32_t )(atoi (DEFAULT_RFM95_CS));
58
+ RFM95_RST = (uint32_t )(atoi (DEFAULT_RFM95_RST));
59
+ RFM95_INT = (uint32_t )(atoi (DEFAULT_RFM95_INT));
56
60
logln (F (" ERROR: No config file found" ));
57
61
return false ;
58
62
}
@@ -83,10 +87,10 @@ bool Config::loadConfig() {
83
87
getConfig (" SAMPLE_PERIOD" , DEFAULT_SAMPLE_PERIOD)));
84
88
collection_period = (uint32_t )(atoi (
85
89
getConfig (" COLLECTION_PERIOD" , DEFAULT_COLLECTION_PERIOD)));
86
- Serial.print (" Loading LoRa config .." );
87
- RadioConfig::loadConfig ();
88
- Serial.println (" .. done" );
89
90
}
91
+ Serial.print (" Loading LoRa config .." );
92
+ RadioConfig::loadConfig ();
93
+ Serial.println (" .. done" );
90
94
if (node_id == 0 ) {
91
95
Serial.println (" Node ID not configured. Using Lower byte of Si7021 serial number A." );
92
96
Adafruit_Si7021 _sensor = Adafruit_Si7021 ();
You can’t perform that action at this time.
0 commit comments