Revert from const char* to char* because it breaks Anycubic 1.0 without SD card.

This commit is contained in:
Knutwurst
2023-06-02 22:57:16 +02:00
parent 501ebfd159
commit 0670fb9253

View File

@@ -885,7 +885,7 @@ void AnycubicTouchscreenClass::RenderCurrentFolder(uint16_t selectedNumber) {
#endif
// The longname may not be filed, so we use the built-in fallback here.
const char* fileName = currentFileList.filename();
char* fileName = strdup(currentFileList.filename());
int fileNameLen = strlen(fileName);
// Cut off too long filenames.