Do runout.reset after EEPROM read

This commit is contained in:
Scott Lahteine 2020-08-14 00:16:12 -05:00
parent aaba9b7880
commit 56b35fc103
1 changed files with 7 additions and 0 deletions

View File

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