Merge pull request #1907 from DRracer/fan_check_error_fix

Do not allow resume printing if fans are still not ok
This commit is contained in:
Marek Běl 2019-06-11 15:12:48 +02:00 committed by GitHub
commit cb6a3e7e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9367,6 +9367,12 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
void restore_print_from_ram_and_continue(float e_move) void restore_print_from_ram_and_continue(float e_move)
{ {
if (!saved_printing) return; 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++) // for (int axis = X_AXIS; axis <= E_AXIS; axis++)
// current_position[axis] = st_get_position_mm(axis); // current_position[axis] = st_get_position_mm(axis);
active_extruder = saved_active_extruder; //restore active_extruder active_extruder = saved_active_extruder; //restore active_extruder