Do runout.reset after EEPROM read
This commit is contained in:
parent
aaba9b7880
commit
56b35fc103
|
@ -626,7 +626,12 @@ void MarlinSettings::postprocess() {
|
||||||
#endif
|
#endif
|
||||||
EEPROM_WRITE(home_offset);
|
EEPROM_WRITE(home_offset);
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Hotend Offsets, if any
|
||||||
|
//
|
||||||
|
{
|
||||||
#if HAS_HOTEND_OFFSET
|
#if HAS_HOTEND_OFFSET
|
||||||
// Skip hotend 0 which must be 0
|
// Skip hotend 0 which must be 0
|
||||||
LOOP_S_L_N(e, 1, HOTENDS)
|
LOOP_S_L_N(e, 1, HOTENDS)
|
||||||
|
@ -1521,6 +1526,8 @@ void MarlinSettings::postprocess() {
|
||||||
_FIELD_TEST(runout_sensor_enabled);
|
_FIELD_TEST(runout_sensor_enabled);
|
||||||
EEPROM_READ(runout_sensor_enabled);
|
EEPROM_READ(runout_sensor_enabled);
|
||||||
|
|
||||||
|
TERN_(HAS_FILAMENT_SENSOR, if (runout.enabled) runout.reset());
|
||||||
|
|
||||||
float runout_distance_mm;
|
float runout_distance_mm;
|
||||||
EEPROM_READ(runout_distance_mm);
|
EEPROM_READ(runout_distance_mm);
|
||||||
#if HAS_FILAMENT_RUNOUT_DISTANCE
|
#if HAS_FILAMENT_RUNOUT_DISTANCE
|
||||||
|
|
Loading…
Reference in a new issue