Merge pull request #4090 from gudnimg/PFW-1509

PFW-1509 Fix an issue with unload when nozzle is cold
This commit is contained in:
3d-gussner 2023-03-24 13:59:35 +01:00 committed by GitHub
commit fd0e4ee605
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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)
{