Also abort planning in stop_and_save_print_to_ram

Similarly to resume_print_from_ram_and_continue, abort any
planning in mesh_plan_buffer_line already in stop_and_save_print_to_ram
in case it is called for pausing only.
This commit is contained in:
Yuri D'Elia 2019-12-03 19:35:29 +01:00
parent 15bfb7013d
commit 4fce74140a

View File

@ -10249,6 +10249,7 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
memcpy(current_position, saved_pos, sizeof(saved_pos)); memcpy(current_position, saved_pos, sizeof(saved_pos));
memcpy(destination, current_position, sizeof(destination)); memcpy(destination, current_position, sizeof(destination));
#endif #endif
waiting_inside_plan_buffer_line_print_aborted = true; //unroll the stack
} }
} }