Action to notify host of filament runout. (#12817)

This commit is contained in:
Marcio Teixeira
2019-01-27 19:18:05 -07:00
committed by Scott Lahteine
parent aad770bce8
commit f214118e45
91 changed files with 1166 additions and 3 deletions

View File

@ -95,7 +95,13 @@ class TFilamentMonitor : public FilamentMonitorBase {
if (ran_out) {
filament_ran_out = true;
#if ENABLED(EXTENSIBLE_UI)
ExtUI::onFilamentRunout();
ExtUI::onFilamentRunout(ExtUI::getActiveTool());
#endif
#ifdef FILAMENT_RUNOUT_ACTION
SERIAL_ECHOLNPAIR("//action:" FILAMENT_RUNOUT_ACTION " ", active_extruder);
if (!IS_SD_PRINTING())
reset();
else
#endif
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
planner.synchronize();