fix: write preferences after calibration to prevent calibration loop

This commit is contained in:
smash 2020-11-23 23:58:24 +01:00
parent 327ab2547a
commit 65991da03a

View file

@ -83,6 +83,7 @@ void setup() {
display.clear(); display.clear();
display.drawString(64, 0, "DONE"); display.drawString(64, 0, "DONE");
display.display(); display.display();
preferences.putUInt("cal", 42);
char myVersion[4]; char myVersion[4];
myMHZ19.getVersion(myVersion); myMHZ19.getVersion(myVersion);
Serial.print("\nFirmware Version: "); Serial.print("\nFirmware Version: ");