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;