Skip to content

Commit 4fd92c3

Browse files
committed
Adjusted indentation to make the logic clearer in the previous change
1 parent 670a795 commit 4fd92c3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/GCodes/GCodes.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,9 +1114,11 @@ bool GCodes::IsReallyPrintingOrResuming() const noexcept
11141114
bool GCodes::IsHeatingUp() const noexcept
11151115
{
11161116
int num;
1117-
return FileGCode()->GetState() == GCodeState::m109WaitForTemperature || (FileGCode()->IsExecuting()
1118-
&& FileGCode()->GetCommandLetter() == 'M'
1119-
&& ((num = FileGCode()->GetCommandNumber()) == 109 || num == 116 || num == 190 || num == 191));
1117+
return FileGCode()->GetState() == GCodeState::m109WaitForTemperature
1118+
|| ( FileGCode()->IsExecuting()
1119+
&& FileGCode()->GetCommandLetter() == 'M'
1120+
&& ((num = FileGCode()->GetCommandNumber()) == 109 || num == 116 || num == 190 || num == 191)
1121+
);
11201122
}
11211123

11221124
#if HAS_VOLTAGE_MONITOR || HAS_STALL_DETECT

0 commit comments

Comments
 (0)