Action to notify host of filament runout. (#12817)
This commit is contained in:
committed by
Scott Lahteine
parent
aad770bce8
commit
f214118e45
@ -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();
|
||||
|
Reference in New Issue
Block a user