Skip to content

Commit b034fd4

Browse files
committed
Removed extra newlines in M122 report SBC section
1 parent 4c8d749 commit b034fd4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/SBC/DataTransfer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,9 @@ void DataTransfer::InitFromTask() noexcept
527527

528528
void DataTransfer::Diagnostics(const StringRef& reply) noexcept
529529
{
530-
reply.lcatf("Transfer state: %d, failed transfers: %u, checksum errors: %u\n", (int)state, failedTransfers, checksumErrors);
531-
reply.lcatf("RX/TX seq numbers: %d/%d\n", (int)rxHeader.sequenceNumber, (int)txHeader.sequenceNumber);
532-
reply.lcatf("SPI underruns %u, overruns %u\n", spiTxUnderruns, spiRxOverruns);
530+
reply.lcatf("Transfer state: %d, failed transfers: %u, checksum errors: %u", (int)state, failedTransfers, checksumErrors);
531+
reply.lcatf("RX/TX seq numbers: %d/%d", (int)rxHeader.sequenceNumber, (int)txHeader.sequenceNumber);
532+
reply.lcatf("SPI underruns %u, overruns %u", spiTxUnderruns, spiRxOverruns);
533533
}
534534

535535
const PacketHeader *DataTransfer::ReadPacket() noexcept

src/SBC/SbcInterface.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,10 +1378,10 @@ void SbcInterface::Diagnostics(const StringRef& reply) noexcept
13781378
{
13791379
reply.copy( "=== SBC interface ===");
13801380
transfer.Diagnostics(reply);
1381-
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);
1382-
reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u\n", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles);
1381+
reply.lcatf("State: %d, disconnects: %" PRIu32 ", timeouts: %" PRIu32 " total, %" PRIu32 " by SBC, IAP RAM available 0x%05" PRIx32, (int)state, numDisconnects, numTimeouts, numSbcTimeouts, iapRamAvailable);
1382+
reply.lcatf("Buffer RX/TX: %d/%d-%d, open files: %u", (int)rxPointer, (int)txPointer, (int)txEnd, numOpenFiles);
13831383
#ifdef TRACK_FILE_CODES
1384-
reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d\n", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing);
1384+
reply.lcatf("File codes read/handled: %d/%d, file macros open/closing: %d %d", (int)fileCodesRead, (int)fileCodesHandled, (int)fileMacrosRunning, (int)fileMacrosClosing);
13851385
#endif
13861386
}
13871387

0 commit comments

Comments
 (0)