Reduce string storage, use masking 'seen'
This commit is contained in:
@ -192,8 +192,7 @@ void CardReader::lsDive(const char *prepend, SdFile parent, const char * const m
|
||||
if (!dir.open(&parent, dosFilename, O_READ)) {
|
||||
if (lsAction == LS_SerialPrint) {
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOPGM(MSG_SD_CANT_OPEN_SUBDIR);
|
||||
SERIAL_ECHOLN(dosFilename);
|
||||
SERIAL_ECHOLNPAIR(MSG_SD_CANT_OPEN_SUBDIR, dosFilename);
|
||||
}
|
||||
}
|
||||
lsDive(path, dir);
|
||||
@ -292,8 +291,7 @@ void CardReader::ls() {
|
||||
if (!dir.open(&diveDir, segment, O_READ)) {
|
||||
SERIAL_EOL();
|
||||
SERIAL_ECHO_START();
|
||||
SERIAL_ECHOPGM(MSG_SD_CANT_OPEN_SUBDIR);
|
||||
SERIAL_ECHO(segment);
|
||||
SERIAL_ECHOPAIR(MSG_SD_CANT_OPEN_SUBDIR, segment);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user