From b18035a51755c60a23ba2b1b4c42c86d075a2a83 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d-gussner@users.noreply.github.com> Date: Thu, 12 Oct 2017 11:56:35 +0200 Subject: [PATCH] Updated patch from Thess and minor changes --- Firmware/cardreader.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Firmware/cardreader.cpp b/Firmware/cardreader.cpp index 393f28c733..d3d0f498cd 100644 --- a/Firmware/cardreader.cpp +++ b/Firmware/cardreader.cpp @@ -150,7 +150,11 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m case LS_SerialPrint: createFilename(filename, p); SERIAL_PROTOCOL(prepend); + if (longFilename[0] != 0) { + SERIAL_PROTOCOL(longFilename); + } else { SERIAL_PROTOCOL(filename); + } MYSERIAL.write(' '); SERIAL_PROTOCOLLN(p.fileSize); break;