Fix TEMP_HYSTERESIS calculation
This commit is contained in:
parent
7c7d6b1671
commit
0d097d5a62
|
|
@ -1872,7 +1872,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
|
||||||
|
|
||||||
// the current temperature is within +-TEMP_HYSTERESIS of the target
|
// the current temperature is within +-TEMP_HYSTERESIS of the target
|
||||||
// then continue with the filament action if any is set
|
// 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;
|
menu_func_t filamentActionMenu = nullptr;
|
||||||
switch (eFilamentAction)
|
switch (eFilamentAction)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue