From 3e3715055292f68b5ab538d422def6251855eb0e Mon Sep 17 00:00:00 2001 From: DRracer Date: Tue, 11 Jun 2019 14:53:10 +0200 Subject: [PATCH 1/2] Do not allow resume printing if fans are still not ok --- Firmware/Marlin_main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index fd1d34eb..7adc13ab 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -9323,6 +9323,10 @@ void stop_and_save_print_to_ram(float z_move, float e_move) void restore_print_from_ram_and_continue(float e_move) { if (!saved_printing) return; + + // Do not allow resume printing if fans are still not ok + if( fan_check_error != EFCE_OK )return; + // for (int axis = X_AXIS; axis <= E_AXIS; axis++) // current_position[axis] = st_get_position_mm(axis); active_extruder = saved_active_extruder; //restore active_extruder From 13c3ab14fabe18558c741bda8a62ec641b5800e1 Mon Sep 17 00:00:00 2001 From: DRracer Date: Tue, 11 Jun 2019 15:05:40 +0200 Subject: [PATCH 2/2] test fan check error only when enabled by #ifdef --- Firmware/Marlin_main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 7adc13ab..54c21379 100755 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -9324,8 +9324,10 @@ void restore_print_from_ram_and_continue(float e_move) { if (!saved_printing) return; +#ifdef FANCHECK // Do not allow resume printing if fans are still not ok if( fan_check_error != EFCE_OK )return; +#endif // for (int axis = X_AXIS; axis <= E_AXIS; axis++) // current_position[axis] = st_get_position_mm(axis);