"lcd_update_enable()" replacement

This commit is contained in:
MRprusa3d 2019-02-26 23:17:52 +01:00
parent ff35119ef3
commit 2f1e968563
1 changed files with 16 additions and 2 deletions

View File

@ -1044,6 +1044,16 @@ else {
} }
} }
//-//
void extr_unload_view()
{
lcd_clear();
lcd_set_cursor(0, 1); lcd_puts_P(_T(MSG_UNLOADING_FILAMENT));
lcd_print(" ");
if (mmu_extruder == MMU_FILAMENT_UNKNOWN) lcd_print(" ");
else lcd_print(mmu_extruder + 1);
}
void extr_unload() void extr_unload()
{ //unload just current filament for multimaterial printers { //unload just current filament for multimaterial printers
#ifdef SNMM #ifdef SNMM
@ -1058,12 +1068,15 @@ void extr_unload()
st_synchronize(); st_synchronize();
//show which filament is currently unloaded //show which filament is currently unloaded
lcd_update_enable(false); //-// lcd_update_enable(false);
menu_submenu(extr_unload_view);
/*
lcd_clear(); lcd_clear();
lcd_set_cursor(0, 1); lcd_puts_P(_T(MSG_UNLOADING_FILAMENT)); lcd_set_cursor(0, 1); lcd_puts_P(_T(MSG_UNLOADING_FILAMENT));
lcd_print(" "); lcd_print(" ");
if (mmu_extruder == MMU_FILAMENT_UNKNOWN) lcd_print(" "); if (mmu_extruder == MMU_FILAMENT_UNKNOWN) lcd_print(" ");
else lcd_print(mmu_extruder + 1); else lcd_print(mmu_extruder + 1);
*/
mmu_filament_ramming(); mmu_filament_ramming();
@ -1071,7 +1084,8 @@ void extr_unload()
// get response // get response
manage_response(false, true, MMU_UNLOAD_MOVE); manage_response(false, true, MMU_UNLOAD_MOVE);
lcd_update_enable(true); //-// lcd_update_enable(true);
menu_back();
#else //SNMM #else //SNMM
lcd_clear(); lcd_clear();