Selaa lähdekoodia

Do runout.reset after EEPROM read

Scott Lahteine 4 vuotta sitten
vanhempi
commit
56b35fc103
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7
    0
      Marlin/src/module/settings.cpp

+ 7
- 0
Marlin/src/module/settings.cpp Näytä tiedosto

@@ -626,7 +626,12 @@ void MarlinSettings::postprocess() {
626 626
         #endif
627 627
         EEPROM_WRITE(home_offset);
628 628
       #endif
629
+    }
629 630
 
631
+    //
632
+    // Hotend Offsets, if any
633
+    //
634
+    {
630 635
       #if HAS_HOTEND_OFFSET
631 636
         // Skip hotend 0 which must be 0
632 637
         LOOP_S_L_N(e, 1, HOTENDS)
@@ -1521,6 +1526,8 @@ void MarlinSettings::postprocess() {
1521 1526
         _FIELD_TEST(runout_sensor_enabled);
1522 1527
         EEPROM_READ(runout_sensor_enabled);
1523 1528
 
1529
+        TERN_(HAS_FILAMENT_SENSOR, if (runout.enabled) runout.reset());
1530
+
1524 1531
         float runout_distance_mm;
1525 1532
         EEPROM_READ(runout_distance_mm);
1526 1533
         #if HAS_FILAMENT_RUNOUT_DISTANCE

Loading…
Peruuta
Tallenna