Fix CardReader string args

This commit is contained in:
Scott Lahteine
2021-04-02 14:30:13 -05:00
parent 9165749321
commit 98d6c751d3
2 changed files with 6 additions and 6 deletions

View File

@@ -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;