Merge pull request #871 from PavelSindler/crashdet_timeout

save extruder relative mode correctly
This commit is contained in:
XPila 2018-06-25 17:35:47 +02:00 committed by GitHub
commit 93aed63115
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8861,7 +8861,7 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
saved_active_extruder = active_extruder; //save active_extruder
saved_extruder_under_pressure = extruder_under_pressure; //extruder under pressure flag - currently unused
saved_extruder_relative_mode = axis_relative_modes[E_AXIS];
cmdqueue_reset(); //empty cmdqueue
card.sdprinting = false;
// card.closefile();
@ -8875,7 +8875,6 @@ void stop_and_save_print_to_ram(float z_move, float e_move)
char buf[48];
// First unretract (relative extrusion)
saved_extruder_relative_mode = axis_relative_modes[E_AXIS];
if(!saved_extruder_relative_mode){
strcpy_P(buf, PSTR("M83"));
enquecommand(buf, false);