| 83 | DEFINE_GET_OBJECT_MODEL_TABLE(GCodeBuffer) |
| 84 | |
| 85 | const 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 |