Do runout.reset after EEPROM read

2.0.x
Scott Lahteine 4 years ago
parent eee101b9dd
commit 1327eaa83b

@ -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