Marlin
Marlin copied to clipboard
[BUG] not compiling with SDSORT_DYNAMIC_RAM enabled
Did you test the latest bugfix-2.1.x
code?
Yes, and the problem still exists.
Bug Description
If you enable SDSORT_DYNAMIC_RAM with the latest Marlin, I get this error on compilation:
C:\Users\David\Documents\GitHub\Marlin\Marlin\src\sd\cardreader.cpp: In static member function 'static void CardReader::presort()': C:\Users\David\Documents\GitHub\Marlin\Marlin\src\sd\cardreader.cpp:1062:72: error: incompatible types in assignment of 'char*' to 'char [66]' #define SET_SORTNAME(I) (sortnames[I] = strdup(longest_filename())) ^ C:\Users\David\Documents\GitHub\Marlin\Marlin\src\sd\cardreader.cpp:1155:13: note: in expansion of macro 'SET_SORTNAME' SET_SORTNAME(i); ^~~~~~~~~~~~ exit status 1 Error compiling for board Sanguino.
Obviously you have to disable SDCARD_RATHERRECENTFIRST and enable SDCARD_SORT_ALPHA and SDSORT_USES_RAM...
Expected behavior
No compiler errors.
Actual behavior
Compiler error.
Steps to Reproduce
Compile FW with Arduino IDE
Version of Marlin Firmware
2.1.1
Printer model
Custom i3 style
Electronics
Melzi
Don't forget to include
- [X] A ZIP file containing your
Configuration.h
andConfiguration_adv.h
.