Drop redundant lcd_draw_update assignment

lcd_draw_update is automatically set to 1 when the knob
is rotated. See lcd_knob_update()

_lcd_move is called before lcd_draw_update is decremented, since it is called as a submenu

Change in memory:
Flash: -12 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2024-08-17 18:33:28 +00:00 committed by gudnimg
parent c92b80d3d3
commit 4750494727
1 changed files with 0 additions and 2 deletions

View File

@ -2420,7 +2420,6 @@ static void _lcd_move(const char *name, const uint8_t axis)
lcd_encoder = 0;
clamp_to_software_endstops(current_position);
plan_buffer_line_curposXYZE(get_feedrate_mm_s(manual_feedrate[axis]));
lcd_draw_update = 1;
}
}
if (lcd_draw_update)
@ -2445,7 +2444,6 @@ void lcd_move_e()
current_position[E_AXIS] += lcd_encoder;
lcd_encoder = 0;
plan_buffer_line_curposXYZE(manual_feedrate[E_AXIS] / 60);
lcd_draw_update = 1;
}
}
if (lcd_draw_update)