optimisation: reduce code size in pid_extruder()

Author: leptun

Change in memory:
Flash: -14 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-07-25 11:05:27 +00:00 committed by Guðni Már Gilbert
parent 6623d45af9
commit 7029af05fa
1 changed files with 1 additions and 1 deletions

View File

@ -2686,7 +2686,7 @@ void pid_extruder()
lcd_puts_at_P(0, 0, _i("Set temperature:"));////MSG_SET_TEMPERATURE c=20
pid_temp += lcd_encoder;
if (pid_temp > HEATER_0_MAXTEMP) pid_temp = HEATER_0_MAXTEMP;
if (pid_temp < HEATER_0_MINTEMP) pid_temp = HEATER_0_MINTEMP;
else if (pid_temp < HEATER_0_MINTEMP) pid_temp = HEATER_0_MINTEMP;
lcd_encoder = 0;
lcd_set_cursor(1, 2);
lcd_printf_P(PSTR("%3u"), pid_temp);