|
|
@ -515,7 +515,7 @@ void CardReader::endFilePrint(TERN_(SD_RESORT, const bool re_sort/*=false*/)) { |
|
|
|
TERN_(SD_RESORT, if (re_sort) presort()); |
|
|
|
} |
|
|
|
|
|
|
|
void CardReader::openLogFile(char * const path) { |
|
|
|
void CardReader::openLogFile(const char * const path) { |
|
|
|
flag.logging = DISABLED(SDCARD_READONLY); |
|
|
|
IF_DISABLED(SDCARD_READONLY, openFileWrite(path)); |
|
|
|
} |
|
|
@ -634,7 +634,7 @@ inline void echo_write_to_file(const char * const fname) { |
|
|
|
//
|
|
|
|
// Open a file by DOS path for write
|
|
|
|
//
|
|
|
|
void CardReader::openFileWrite(char * const path) { |
|
|
|
void CardReader::openFileWrite(const char * const path) { |
|
|
|
if (!isMounted()) return; |
|
|
|
|
|
|
|
announceOpen(2, path); |
|
|
@ -722,7 +722,7 @@ void CardReader::report_status() { |
|
|
|
SERIAL_ECHOLNPGM(STR_SD_NOT_PRINTING); |
|
|
|
} |
|
|
|
|
|
|
|
void CardReader::write_command(char * const buf) { |
|
|
|
void CardReader::write_command(const char * const buf) { |
|
|
|
char *begin = buf; |
|
|
|
char *npos = nullptr; |
|
|
|
char *end = buf + strlen(buf) - 1; |
|
|
|