Browse Source

Do runout.reset after EEPROM read

Scott Lahteine 5 years ago
parent
commit
56b35fc103
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      Marlin/src/module/settings.cpp

+ 7
- 0
Marlin/src/module/settings.cpp View File

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

Loading…
Cancel
Save