Merge pull request #1575 from mkbel/add_ramming_eject

Add filament ramming to eject filament.
This commit is contained in:
PavelSindler 2019-03-01 14:21:23 +01:00 committed by GitHub
commit e14e4be94e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1436,9 +1436,7 @@ bFilamentAction=false; // NOT in "mmu_fil_eject_menu(
LcdUpdateDisabler disableLcdUpdate;
lcd_clear();
lcd_set_cursor(0, 1); lcd_puts_P(_i("Ejecting filament"));
current_position[E_AXIS] -= 80;
plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], 2500 / 60, active_extruder);
st_synchronize();
mmu_filament_ramming();
mmu_command(MmuCmd::E0 + filament);
manage_response(false, false, MMU_UNLOAD_MOVE);
if (recover)