Add LF to file errors
This commit is contained in:
parent
e114662cfa
commit
d2563804c8
1 changed files with 3 additions and 3 deletions
|
@ -309,14 +309,14 @@ void CardReader::openFile(char* name, bool read, bool replace_current/*=true*/)
|
||||||
else {
|
else {
|
||||||
SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL);
|
SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL);
|
||||||
SERIAL_PROTOCOL(fname);
|
SERIAL_PROTOCOL(fname);
|
||||||
SERIAL_PROTOCOLCHAR('.');
|
SERIAL_PROTOCOLPGM(".\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { //write
|
else { //write
|
||||||
if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC)) {
|
if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC)) {
|
||||||
SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL);
|
SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL);
|
||||||
SERIAL_PROTOCOL(fname);
|
SERIAL_PROTOCOL(fname);
|
||||||
SERIAL_PROTOCOLCHAR('.');
|
SERIAL_PROTOCOLPGM(".\n");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
saving = true;
|
saving = true;
|
||||||
|
|
Reference in a new issue