Switch back from char* to const char* withyout copy routine for testing.
This commit is contained in:
@@ -913,7 +913,7 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
|
|||||||
SERIAL_ECHOLN(currentFileList.filename());
|
SERIAL_ECHOLN(currentFileList.filename());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
char* fileName = strdup(currentFileList.filename());
|
const char* fileName = currentFileList.filename();
|
||||||
int fileNameLen = strlen(fileName);
|
int fileNameLen = strlen(fileName);
|
||||||
|
|
||||||
// Cut off too long filenames.
|
// Cut off too long filenames.
|
||||||
|
Reference in New Issue
Block a user