MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / SetState

Method SetState

src/GCodes/GCodeMachineState.cpp:326–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

324}
325
326void GCodeMachineState::SetState(GCodeState newState) noexcept
327{
328 if (state == GCodeState::normal && newState != GCodeState::normal)
329 {
330 stateMachineResult = GCodeResult::ok;
331 errorMessage = GCodeException();
332 }
333 state = newState;
334}
335
336// Get the number of iterations of the closest enclosing loop in the current file, or -1 if there is on enclosing loop
337int32_t GCodeMachineState::GetIterations() const noexcept

Callers 15

EmergencyStopMethod · 0.45
THROWSFunction · 0.45
FinaliseMoveMethod · 0.45
DoFileMacroMethod · 0.45
GCodes.cppFile · 0.45
StartToolChangeMethod · 0.45
THROWSFunction · 0.45
ProcessEventMethod · 0.45
RunStateMachineMethod · 0.45
THROWSFunction · 0.45

Calls 1

GCodeExceptionClass · 0.70

Tested by

no test coverage detected