optimisation: preheat menu always uses integers for target temperature

Let's drop the float comparison since it not needed

Change in memory:
Flash : -16 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-02-19 13:21:30 +00:00
parent 319fec47f0
commit 6ad126ef0b
1 changed files with 1 additions and 1 deletions

View File

@ -1888,7 +1888,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
lcd_timeoutToStatus.stop();
if (fabs(current_temperature[0] - target_temperature[0]) > TEMP_HYSTERESIS)
if (abs((int)current_temperature[0] - nTemp) > TEMP_HYSTERESIS)
{
switch (eFilamentAction)
{