Browse Source

Followup to #12817

pull/1/head
Scott Lahteine 6 years ago
parent
commit
621fbe99de
  1. 12
      Marlin/src/feature/runout.h

12
Marlin/src/feature/runout.h

@ -97,13 +97,19 @@ class TFilamentMonitor : public FilamentMonitorBase {
#if ENABLED(EXTENSIBLE_UI) #if ENABLED(EXTENSIBLE_UI)
ExtUI::onFilamentRunout(ExtUI::getActiveTool()); ExtUI::onFilamentRunout(ExtUI::getActiveTool());
#endif #endif
#ifdef FILAMENT_RUNOUT_ACTION #ifdef ACTION_ON_FILAMENT_RUNOUT
SERIAL_ECHOLNPAIR("//action:" FILAMENT_RUNOUT_ACTION " ", active_extruder); #if NUM_RUNOUT_SENSORS > 1
SERIAL_ECHOLNPAIR("//action:" ACTION_ON_FILAMENT_RUNOUT " ", int(active_extruder));
#else
SERIAL_ECHOLNPGM("//action:" ACTION_ON_FILAMENT_RUNOUT);
#endif
if (!IS_SD_PRINTING()) if (!IS_SD_PRINTING())
reset(); reset();
else else
#endif #endif
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT)); {
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
}
planner.synchronize(); planner.synchronize();
} }
} }

Loading…
Cancel
Save