From b5c2190b38b062b9ec09d404766a314648fbd8ad Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 26 Feb 2020 04:32:30 -0600 Subject: [PATCH] String optimize followup --- Marlin/src/sd/cardreader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/sd/cardreader.cpp b/Marlin/src/sd/cardreader.cpp index 2bde9501f7..b2b0d90e96 100644 --- a/Marlin/src/sd/cardreader.cpp +++ b/Marlin/src/sd/cardreader.cpp @@ -521,7 +521,7 @@ void CardReader::openFileRead(char * const path, const uint8_t subcall_type/*=0* openFailed(fname); } -inline void echo_write_to_file(char * const fname) { +inline void echo_write_to_file(const char * const fname) { SERIAL_ECHOLNPAIR(STR_SD_WRITE_TO_FILE, fname); }