Fix some more stuff in cardreader.cpp

Saved 4B of flash and 60B of RAM
This commit is contained in:
Voinea Dragos 2021-01-26 09:24:18 +02:00
parent ab18a3ccc3
commit c6588193ad

View file

@ -427,7 +427,7 @@ void CardReader::openFile(const char* name,bool read, bool replace_current/*=tru
SERIAL_PROTOCOLLNRPGM(_N("File selected"));////MSG_SD_FILE_SELECTED
getfilename(0, fname);
lcd_setstatus(longFilename[0] ? longFilename : fname);
lcd_setstatus("SD-PRINTING ");
lcd_setstatuspgm(PSTR("SD-PRINTING"));
}
else
{
@ -478,7 +478,7 @@ void CardReader::removeFile(const char* name)
{
SERIAL_PROTOCOLPGM("Deletion failed, File: ");
SERIAL_PROTOCOL(fname);
SERIAL_PROTOCOLLNPGM(".");
SERIAL_PROTOCOLLN('.');
}
}
@ -546,7 +546,7 @@ void CardReader::write_command_no_newline(char *buf)
{
SERIAL_ERROR_START;
SERIAL_ERRORLNRPGM(MSG_SD_ERR_WRITE_TO_FILE);
MYSERIAL.println("An error while writing to the SD Card.");
SERIAL_PROTOCOLLNPGM("An error while writing to the SD Card.");
}
}