Update Payload_BME280_MPU6050_XS.ino change to %2

beta-cal
Alan Johnston 2 years ago committed by GitHub
parent 59faf8e0d7
commit 97ab2defc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -388,7 +388,7 @@ void loop() {
eeprom_word_write(calibration * 2 + 4 , (int)(temp * 10.0) + 0.5); eeprom_word_write(calibration * 2 + 4 , (int)(temp * 10.0) + 0.5);
eeprom_word_write(calibration * 2 + 5, sensorValue); eeprom_word_write(calibration * 2 + 5, sensorValue);
calibration = (calibration++) % 1; calibration = (calibration++) % 2;
if (EEPROM.commit()) { if (EEPROM.commit()) {
Serial.println("EEPROM successfully committed"); Serial.println("EEPROM successfully committed");

Loading…
Cancel
Save

Powered by TurnKey Linux.