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

Method GetStateText

src/GCodes/GCodeBuffer/GCodeBuffer.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83DEFINE_GET_OBJECT_MODEL_TABLE(GCodeBuffer)
84
85const char *_ecv_array GCodeBuffer::GetStateText() const noexcept
86{
87 if (machineState->waitingForAcknowledgement)
88 {
89 return "awaitingAcknowledgement";
90 }
91
92 switch (bufferState)
93 {
94 case GCodeBufferState::parseNotStarted: return "idle";
95 case GCodeBufferState::ready: return "executing";
96 case GCodeBufferState::executing: return "waiting";
97 default: return "reading";
98 }
99}
100
101#endif
102

Callers 1

GCodeBuffer.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected