Merge pull request #3120 from wavexx/fix_lcd_redraw_autoload

Fix partial redraw during filament autoload
This commit is contained in:
DRracer 2021-04-22 10:36:40 +02:00 committed by GitHub
commit 1e0fd8af87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2201,15 +2201,16 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
}
else
{
lcd_set_cursor(0, 0);
lcdui_print_temp(LCD_STR_THERMOMETER[0], (int) degHotend(0), (int) degTargetHotend(0));
if (!bFilamentWaitingFlag)
{
// First run after the filament preheat selection:
// setup the fixed LCD parts and raise Z as we wait
bFilamentWaitingFlag = true;
lcd_clear();
lcd_draw_update = 1;
lcd_puts_at_P(0, 3, _i(">Cancel")); ////MSG_ c=20 r=1
lcd_set_cursor(0, 1);
switch (eFilamentAction)
{
@ -2236,9 +2237,11 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
// handled earlier
break;
}
lcd_puts_at_P(0, 3, _i(">Cancel")); ////MSG_ c=20 r=1
}
lcd_set_cursor(0, 0);
lcdui_print_temp(LCD_STR_THERMOMETER[0], (int) degHotend(0), (int) degTargetHotend(0));
if (lcd_clicked())
{
bFilamentWaitingFlag = false;