| 219 | } |
| 220 | |
| 221 | void 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 |
nothing calls this directly
no test coverage detected