added EEPROM commit

pico-v0.1
alanbjohnston 3 years ago committed by GitHub
parent db80f73292
commit 27afe6d531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2030,8 +2030,14 @@ void start_payload() {
EEPROM.put(0, (long) 0xA07);
EEPROM.put(4, (float)mpu6050.getGyroXoffset());
EEPROM.put(8, (float)mpu6050.getGyroYoffset());
EEPROM.put(12, (float)mpu6050.getGyroZoffset());
EEPROM.put(12, (float)mpu6050.getGyroZoffset());
if (EEPROM.commit()) {
Serial.println("EEPROM successfully committed");
} else {
Serial.println("ERROR! EEPROM commit failed");
}
Serial.println(" ");
float f;
long la;

Loading…
Cancel
Save

Powered by TurnKey Linux.