From 5c010a3aaa393320e75382e15f2692275d21ea1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Sat, 18 Mar 2023 10:43:23 +0000 Subject: [PATCH] PFW-1509 Fix an issue with unload when nozzle is cold Change in memory: Flash: -2 bytes SRAM: 0 bytes --- Firmware/ultralcd.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Firmware/ultralcd.cpp b/Firmware/ultralcd.cpp index f327fbdc1..b7b5fe6b9 100644 --- a/Firmware/ultralcd.cpp +++ b/Firmware/ultralcd.cpp @@ -1893,7 +1893,9 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed) lcd_timeoutToStatus.stop(); - if (abs((int)current_temperature[0] - nTemp) > TEMP_HYSTERESIS) + // the current temperature is within +-TEMP_HYSTERESIS of the target + // then continue with the filament action if any is set + if (abs((int)current_temperature[0] - nTemp) < TEMP_HYSTERESIS) { switch (eFilamentAction) { @@ -1956,7 +1958,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed) if (bFilamentWaitingFlag) Sound_MakeSound(e_SOUND_TYPE_StandardPrompt); bFilamentWaitingFlag = false; } - else + else // still preheating, continue updating LCD UI { if (!bFilamentWaitingFlag || lcd_draw_update) {