|
@@ -259,7 +259,7 @@ void CardReader::openFile(char* name, bool read, bool replace_current/*=true*/)
|
259
|
259
|
char *dirname_start, *dirname_end;
|
260
|
260
|
if (name[0] == '/') {
|
261
|
261
|
dirname_start = &name[1];
|
262
|
|
- while(dirname_start > 0) {
|
|
262
|
+ while (dirname_start > 0) {
|
263
|
263
|
dirname_end = strchr(dirname_start, '/');
|
264
|
264
|
//SERIAL_ECHO("start:");SERIAL_ECHOLN((int)(dirname_start - name));
|
265
|
265
|
//SERIAL_ECHO("end :");SERIAL_ECHOLN((int)(dirname_end - name));
|
|
@@ -309,14 +309,14 @@ void CardReader::openFile(char* name, bool read, bool replace_current/*=true*/)
|
309
|
309
|
else {
|
310
|
310
|
SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL);
|
311
|
311
|
SERIAL_PROTOCOL(fname);
|
312
|
|
- SERIAL_PROTOCOLCHAR('.');
|
|
312
|
+ SERIAL_PROTOCOLPGM(".\n");
|
313
|
313
|
}
|
314
|
314
|
}
|
315
|
315
|
else { //write
|
316
|
316
|
if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC)) {
|
317
|
317
|
SERIAL_PROTOCOLPGM(MSG_SD_OPEN_FILE_FAIL);
|
318
|
318
|
SERIAL_PROTOCOL(fname);
|
319
|
|
- SERIAL_PROTOCOLCHAR('.');
|
|
319
|
+ SERIAL_PROTOCOLPGM(".\n");
|
320
|
320
|
}
|
321
|
321
|
else {
|
322
|
322
|
saving = true;
|