Switch back from char* to const char* withyout copy routine for testing.

This commit is contained in:
Knutwurst
2023-06-09 22:36:30 +02:00
parent c10a05b8dd
commit 2849d5afc3

View File

@@ -913,7 +913,7 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
SERIAL_ECHOLN(currentFileList.filename());
#endif
char* fileName = strdup(currentFileList.filename());
const char* fileName = currentFileList.filename();
int fileNameLen = strlen(fileName);
// Cut off too long filenames.