浏览代码

Put space between filename and size (fix M20 / lsDive)
Output longFilename if present.

Ted Hess 7 年之前
父节点
当前提交
69fb8d7013
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      Firmware/cardreader.cpp

+ 6 - 2
Firmware/cardreader.cpp

@@ -127,8 +127,12 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m
 			case LS_SerialPrint:
 				createFilename(filename, p);
 				SERIAL_PROTOCOL(prepend);
-				SERIAL_PROTOCOL(filename);
-				//SERIAL_PROTOCOLCHAR(' ');
+				if (longFilename[0] != 0) {
+					SERIAL_PROTOCOL(longFilename);
+				} else {
+					SERIAL_PROTOCOL(filename);
+				}
+				MYSERIAL.write(' ');
 				SERIAL_PROTOCOLLN(p.fileSize);
 				break;