151151 Only disable I2C SDA and SCL during sleep when I2C bus is being powered down - thank you @whipple63 #167
152152 Add calibrationConcentration support for the SCD30 - thank you @hotstick #181
153153 Add limited support for the VEML7700 light sensor
154+
155+ v2.7:
156+ Resolve serial logging issue - crash on startup - #182
154157*/
155158
156159const int FIRMWARE_VERSION_MAJOR = 2 ;
157- const int FIRMWARE_VERSION_MINOR = 6 ;
160+ const int FIRMWARE_VERSION_MINOR = 7 ;
158161
159162// Define the OLA board identifier:
160163// This is an int which is unique to this variant of the OLA and which allows us
@@ -164,7 +167,7 @@ const int FIRMWARE_VERSION_MINOR = 6;
164167// the variant * 0x100 (OLA = 1; GNSS_LOGGER = 2; GEOPHONE_LOGGER = 3)
165168// the major firmware version * 0x10
166169// the minor firmware version
167- #define OLA_IDENTIFIER 0x126 // Stored as 294 decimal in OLA_settings.txt
170+ #define OLA_IDENTIFIER 0x127 // Stored as 294 decimal in OLA_settings.txt
168171
169172// #define noPowerLossProtection // Uncomment this line to disable the sleep-on-power-loss functionality
170173
@@ -468,7 +471,8 @@ void setup() {
468471 else
469472 {
470473 Serial1.flush (); // Complete any previous prints
471- Serial1.end (); // Stop the SerialLog port
474+ if (settings.logSerial == false )
475+ Serial1.end (); // Stop the SerialLog port - but only if not logging serial, otherwise incoming data can cause a crash!
472476 }
473477
474478 Serial.flush (); // Complete any previous prints
0 commit comments