Sfoglia il codice sorgente

TM: Force initialization after reset

Yuri D'Elia 2 anni fa
parent
commit
c0f96e062b
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      Firmware/temperature.cpp

+ 1 - 0
Firmware/temperature.cpp

@@ -2584,6 +2584,7 @@ void temp_model_reset_settings()
     temp_model::data.err = TEMP_MODEL_E;
     temp_model::warn_beep = true;
     temp_model::enabled = true;
+    temp_model::data.flag_bits.uninitialized = true;
 }
 
 void temp_model_load_settings()