1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-29 23:07:42 +00:00

One more IS_SD_PRINTING

This commit is contained in:
Scott Lahteine 2018-10-22 00:25:46 -05:00
parent 75298e654e
commit 7446976881

View File

@ -45,7 +45,7 @@ class FilamentRunoutSensor {
FORCE_INLINE static void reset() { runout_count = 0; filament_ran_out = false; } FORCE_INLINE static void reset() { runout_count = 0; filament_ran_out = false; }
FORCE_INLINE static void run() { FORCE_INLINE static void run() {
if ((IS_SD_PRINTING || print_job_timer.isRunning()) && check() && !filament_ran_out) { if ((IS_SD_PRINTING() || print_job_timer.isRunning()) && check() && !filament_ran_out) {
filament_ran_out = true; filament_ran_out = true;
enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT)); enqueue_and_echo_commands_P(PSTR(FILAMENT_RUNOUT_SCRIPT));
planner.synchronize(); planner.synchronize();