ultralcd: eliminate display flicker in pid_extruder

This commit is contained in:
Ted Hess 2018-01-04 17:13:03 -05:00
parent ce36964279
commit 05a31ff2da
1 changed files with 12 additions and 9 deletions

View File

@ -2223,6 +2223,7 @@ static void lcd_adjust_bed()
void pid_extruder() { void pid_extruder() {
if ((encoderPosition != 0) || (lcdDrawUpdate == 1)) {
lcd_implementation_clear(); lcd_implementation_clear();
lcd.setCursor(1, 0); lcd.setCursor(1, 0);
lcd_printPGM(MSG_SET_TEMPERATURE); lcd_printPGM(MSG_SET_TEMPERATURE);
@ -2232,6 +2233,8 @@ void pid_extruder() {
encoderPosition = 0; encoderPosition = 0;
lcd.setCursor(1, 2); lcd.setCursor(1, 2);
lcd.print(ftostr3(pid_temp)); lcd.print(ftostr3(pid_temp));
lcdDrawUpdate = 1;
}
if (lcd_clicked()) { if (lcd_clicked()) {
lcd_commands_type = LCD_COMMAND_PID_EXTRUDER; lcd_commands_type = LCD_COMMAND_PID_EXTRUDER;
lcd_return_to_status(); lcd_return_to_status();