Browse Source

Do runout.reset after EEPROM read

vanilla_fb_2.0.x
Scott Lahteine 4 years ago
parent
commit
1327eaa83b
  1. 7
      Marlin/src/module/settings.cpp

7
Marlin/src/module/settings.cpp

@ -626,7 +626,12 @@ void MarlinSettings::postprocess() {
#endif
EEPROM_WRITE(home_offset);
#endif
}
//
// Hotend Offsets, if any
//
{
#if HAS_HOTEND_OFFSET
// Skip hotend 0 which must be 0
LOOP_S_L_N(e, 1, HOTENDS)
@ -1521,6 +1526,8 @@ void MarlinSettings::postprocess() {
_FIELD_TEST(runout_sensor_enabled);
EEPROM_READ(runout_sensor_enabled);
TERN_(HAS_FILAMENT_SENSOR, if (runout.enabled) runout.reset());
float runout_distance_mm;
EEPROM_READ(runout_distance_mm);
#if HAS_FILAMENT_RUNOUT_DISTANCE

Loading…
Cancel
Save