Merge pull request #201 from thess/patch-1

Put space between filename and size (fix M20 / lsDive)
This commit is contained in:
PavelSindler 2017-10-12 18:46:39 +02:00 committed by GitHub
commit 156aed0fdc
1 changed files with 6 additions and 2 deletions

View File

@ -147,8 +147,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;