|
@@ -515,7 +515,7 @@ void CardReader::endFilePrint(TERN_(SD_RESORT, const bool re_sort/*=false*/)) {
|
515
|
515
|
TERN_(SD_RESORT, if (re_sort) presort());
|
516
|
516
|
}
|
517
|
517
|
|
518
|
|
-void CardReader::openLogFile(char * const path) {
|
|
518
|
+void CardReader::openLogFile(const char * const path) {
|
519
|
519
|
flag.logging = DISABLED(SDCARD_READONLY);
|
520
|
520
|
IF_DISABLED(SDCARD_READONLY, openFileWrite(path));
|
521
|
521
|
}
|
|
@@ -634,7 +634,7 @@ inline void echo_write_to_file(const char * const fname) {
|
634
|
634
|
//
|
635
|
635
|
// Open a file by DOS path for write
|
636
|
636
|
//
|
637
|
|
-void CardReader::openFileWrite(char * const path) {
|
|
637
|
+void CardReader::openFileWrite(const char * const path) {
|
638
|
638
|
if (!isMounted()) return;
|
639
|
639
|
|
640
|
640
|
announceOpen(2, path);
|
|
@@ -722,7 +722,7 @@ void CardReader::report_status() {
|
722
|
722
|
SERIAL_ECHOLNPGM(STR_SD_NOT_PRINTING);
|
723
|
723
|
}
|
724
|
724
|
|
725
|
|
-void CardReader::write_command(char * const buf) {
|
|
725
|
+void CardReader::write_command(const char * const buf) {
|
726
|
726
|
char *begin = buf;
|
727
|
727
|
char *npos = nullptr;
|
728
|
728
|
char *end = buf + strlen(buf) - 1;
|