Merge pull request #922 from PavelSindler/make_prep

filament loading corrected
This commit is contained in:
PavelSindler 2018-07-11 22:36:49 +02:00 committed by GitHub
commit 5fe53ae251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3114,12 +3114,17 @@ void gcode_M701()
custom_message = true;
custom_message_type = 2;
if (current_position[Z_AXIS] < 20) current_position[Z_AXIS] += 30;
lcd_setstatuspgm(_T(MSG_LOADING_FILAMENT));
current_position[E_AXIS] += 70;
current_position[E_AXIS] += 40;
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 400 / 60, active_extruder); //fast sequence
st_synchronize();
if (current_position[Z_AXIS] < 20) current_position[Z_AXIS] += 30;
current_position[E_AXIS] += 30;
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 400 / 60, active_extruder); //fast sequence
st_synchronize();
current_position[E_AXIS] += 25;
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 100 / 60, active_extruder); //slow sequence
st_synchronize();