Fix for M504 changing filament runout value (#14661)

Fixes #14476
This commit is contained in:
Marcio Teixeira 2019-07-17 18:11:45 -06:00 committed by Scott Lahteine
parent 305f277843
commit 839255eed4

View file

@ -1390,7 +1390,7 @@ void MarlinSettings::postprocess() {
float runout_distance_mm;
EEPROM_READ(runout_distance_mm);
#if HAS_FILAMENT_SENSOR && defined(FILAMENT_RUNOUT_DISTANCE_MM)
runout.set_runout_distance(runout_distance_mm);
if (!validating) runout.set_runout_distance(runout_distance_mm);
#endif
}