From b16e1e5235d8aab365ad2b5725049b7e2374dc11 Mon Sep 17 00:00:00 2001 From: Voinea Dragos Date: Mon, 19 Apr 2021 13:54:43 +0300 Subject: [PATCH] Invert size and LFN in M20 L output --- Firmware/cardreader.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index 6f25330e..c5900a7c 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -133,12 +133,14 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m createFilename(filename, p); SERIAL_PROTOCOL(prepend); SERIAL_PROTOCOL(filename); + MYSERIAL.write(' '); + SERIAL_PROTOCOL(p.fileSize); if (lsAction == LS_SerialPrint_LFN) - printf_P(PSTR("\"%s\" "), LONGEST_FILENAME); + printf_P(PSTR(" \"%s\""), LONGEST_FILENAME); - SERIAL_PROTOCOLLN(p.fileSize); + SERIAL_PROTOCOLLN(); manage_heater(); break;