|
|
|
@ -388,7 +388,8 @@ 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++) % 2;
|
|
|
|
calibration = (calibration + 1) % 2;
|
|
|
|
|
|
|
|
Serial.println(calibration + 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (EEPROM.commit()) {
|
|
|
|
if (EEPROM.commit()) {
|
|
|
|
Serial.println("EEPROM successfully committed");
|
|
|
|
Serial.println("EEPROM successfully committed");
|
|
|
|
|