Skip to content

Commit

Permalink
Merge pull request #4418 from gudnimg/PFW-1542-v2
Browse files Browse the repository at this point in the history
PFW-1542 Handle fan error sooner when waiting for heating to complete
  • Loading branch information
3d-gussner committed Oct 3, 2023
2 parents 9606c4f + e621d34 commit 8b9b63c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Firmware/Marlin_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6037,6 +6037,12 @@ SERIAL_PROTOCOLPGM("\n\n");

while ( (!cancel_heatup) && (target_direction ? (isHeatingBed()) : (isCoolingBed()&&(CooldownNoWait==false))) )
{
if (lcd_commands_type == LcdCommands::LongPause) {
// Print was suddenly paused, break out of the loop
// This can happen when the firmware report a fan error
break;
}

if(( _millis() - codenum) > 1000 ) //Print Temp Reading every 1 second while heating up.
{
if (!farm_mode) {
Expand Down Expand Up @@ -9675,6 +9681,11 @@ static void wait_for_heater(long codenum, uint8_t extruder) {
#else
while (target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder) && (CooldownNoWait == false))) {
#endif //TEMP_RESIDENCY_TIME
if (lcd_commands_type == LcdCommands::LongPause) {
// Print was suddenly paused, break out of the loop
// This can happen when the firmware report a fan error
break;
}
if ((_millis() - codenum) > 1000UL)
{ //Print Temp Reading and remaining time every 1 second while heating up/cooling down
if (!farm_mode) {
Expand Down

0 comments on commit 8b9b63c

Please sign in to comment.