Skip to content

Commit

Permalink
Adjusted indentation to make the logic clearer in the previous change
Browse files Browse the repository at this point in the history
  • Loading branch information
dc42 committed Apr 14, 2023
1 parent 670a795 commit 4fd92c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/GCodes/GCodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1114,9 +1114,11 @@ bool GCodes::IsReallyPrintingOrResuming() const noexcept
bool GCodes::IsHeatingUp() const noexcept
{
int num;
return FileGCode()->GetState() == GCodeState::m109WaitForTemperature || (FileGCode()->IsExecuting()
&& FileGCode()->GetCommandLetter() == 'M'
&& ((num = FileGCode()->GetCommandNumber()) == 109 || num == 116 || num == 190 || num == 191));
return FileGCode()->GetState() == GCodeState::m109WaitForTemperature
|| ( FileGCode()->IsExecuting()
&& FileGCode()->GetCommandLetter() == 'M'
&& ((num = FileGCode()->GetCommandNumber()) == 109 || num == 116 || num == 190 || num == 191)
);
}

#if HAS_VOLTAGE_MONITOR || HAS_STALL_DETECT
Expand Down

0 comments on commit 4fd92c3

Please sign in to comment.