Fix TEMP_HYSTERESIS calculation

This commit is contained in:
sarusani 2023-08-18 00:20:13 +02:00 committed by DRracer
parent 7c7d6b1671
commit 0d097d5a62
1 changed files with 1 additions and 1 deletions

View File

@ -1872,7 +1872,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
// the current temperature is within +-TEMP_HYSTERESIS of the target
// then continue with the filament action if any is set
if (bFilamentSkipPreheat || abs((int)current_temperature[0] - nTemp) < TEMP_HYSTERESIS)
if (bFilamentSkipPreheat || abs((int)current_temperature[0] - (int)nTemp) < TEMP_HYSTERESIS)
{
menu_func_t filamentActionMenu = nullptr;
switch (eFilamentAction)