From b034fd4fe011b6573ec511ca9e86a9fe40daf8a1 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Mon, 10 Feb 2025 22:13:40 +0000 Subject: [PATCH] Removed extra newlines in M122 report SBC section --- src/SBC/DataTransfer.cpp | 6 +++--- src/SBC/SbcInterface.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SBC/DataTransfer.cpp b/src/SBC/DataTransfer.cpp index ca774f7fe..31fcb9a26 100644 --- a/src/SBC/DataTransfer.cpp +++ b/src/SBC/DataTransfer.cpp @@ -527,9 +527,9 @@ void DataTransfer::InitFromTask() noexcept void DataTransfer::Diagnostics(const StringRef& reply) noexcept { - reply.lcatf("Transfer state: %d, failed transfers: %u, checksum errors: %u\n", (int)state, failedTransfers, checksumErrors); - reply.lcatf("RX/TX seq numbers: %d/%d\n", (int)rxHeader.sequenceNumber, (int)txHeader.sequenceNumber); - reply.lcatf("SPI underruns %u, overruns %u\n", spiTxUnderruns, spiRxOverruns); + reply.lcatf("Transfer state: %d, failed transfers: %u, checksum errors: %u", (int)state, failedTransfers, checksumErrors); + reply.lcatf("RX/TX seq numbers: %d/%d", (int)rxHeader.sequenceNumber, (int)txHeader.sequenceNumber); + reply.lcatf("SPI underruns %u, overruns %u", spiTxUnderruns, spiRxOverruns); } const PacketHeader *DataTransfer::ReadPacket() noexcept diff --git a/src/SBC/SbcInterface.cpp b/src/SBC/SbcInterface.cpp index a9add0de8..3b0a24230 100644 --- a/src/SBC/SbcInterface.cpp +++ b/src/SBC/SbcInterface.cpp @@ -1378,10 +1378,10 @@ void SbcInterface::Diagnostics(const StringRef& reply) noexcept { reply.copy( "=== SBC interface ==="); transfer.Diagnostics(reply); - reply.lcatf("State: %d, disconnects: %" PRIu32 ", timeouts: %" PRIu32 " total, %" PRIu32 " by SBC, IAP RAM available 0x%05" PRIx32 "\n", (int)state, numDisconnects, numTimeouts, numSbcTimeouts, iapRamAvailable); - reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u\n", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles); + reply.lcatf("State: %d, disconnects: %" PRIu32 ", timeouts: %" PRIu32 " total, %" PRIu32 " by SBC, IAP RAM available 0x%05" PRIx32, (int)state, numDisconnects, numTimeouts, numSbcTimeouts, iapRamAvailable); + reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles); #ifdef TRACK_FILE_CODES - reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d\n", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing); + reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing); #endif }