Update Payload_BME280_MPU6050_XS.ino clear EEPROM

beta-cal
Alan Johnston 2 years ago committed by GitHub
parent 6a013b70af
commit a864da15dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -345,6 +345,11 @@ void loop() {
else if (result == 'C') {
Serial.println("Clearing stored gyro offsets in EEPROM\n");
eeprom_word_write(0, 0x00);
if (EEPROM.commit()) {
Serial.println("EEPROM successfully committed");
} else {
Serial.println("ERROR! EEPROM commit failed");
}
first_time = true;
setup();
}

Loading…
Cancel
Save

Powered by TurnKey Linux.