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:
parent
319fec47f0
commit
6ad126ef0b
|
|
@ -1888,7 +1888,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
||||||
|
|
||||||
lcd_timeoutToStatus.stop();
|
lcd_timeoutToStatus.stop();
|
||||||
|
|
||||||
if (fabs(current_temperature[0] - target_temperature[0]) > TEMP_HYSTERESIS)
|
if (abs((int)current_temperature[0] - nTemp) > TEMP_HYSTERESIS)
|
||||||
{
|
{
|
||||||
switch (eFilamentAction)
|
switch (eFilamentAction)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue