| 1441 | } |
| 1442 | |
| 1443 | void SbcInterface::Diagnostics(const StringRef& reply) noexcept |
| 1444 | { |
| 1445 | reply.copy( "=== SBC interface ==="); |
| 1446 | transfer.Diagnostics(reply); |
| 1447 | reply.lcatf("State: %d, disconnects: %" PRIu32 ", timeouts: %" PRIu32 " total, %" PRIu32 " by SBC, IAP RAM available 0x%05" PRIx32, (int)state, numDisconnects, numTimeouts, numSbcTimeouts, iapRamAvailable); |
| 1448 | reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles); |
| 1449 | #ifdef TRACK_FILE_CODES |
| 1450 | reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing); |
| 1451 | #endif |
| 1452 | } |
| 1453 | |
| 1454 | GCodeResult SbcInterface::HandleM576(GCodeBuffer& gb, const StringRef& reply) noexcept |
| 1455 | { |