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

Method Diagnostics

src/GCodes/GCodeQueue.cpp:221–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221void GCodeQueue::Diagnostics(const StringRef& reply) noexcept
222{
223 if (queuedItems == nullptr)
224 {
225 reply.lcat("Code queue is empty");
226 }
227 else
228 {
229 const QueuedCode *_ecv_null item = queuedItems;
230 do
231 {
232#if HAS_SBC_INTERFACE
233 // The following may output binary gibberish if this code is stored in binary.
234 // We could restore this message by using GCodeBuffer::AppendFullCommand but there is probably no need to
235 if (!reprap.UsingSbcInterface())
236#endif
237 {
238 reply.lcatf("Code queue has '%.*s' for move %" PRIu32, item->dataLength, item->data, item->executeAtMove);
239 }
240 } while ((item = item->Next()) != nullptr);
241 }
242}
243
244// QueuedCode class
245

Callers

nothing calls this directly

Calls 4

lcatMethod · 0.80
UsingSbcInterfaceMethod · 0.80
lcatfMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected