Repository navigation
Conversation
Marlin's CardReader::mount() now takes a bool alert argument (MarlinFirmware/Marlin#28656), so the declaration in the local copy of cardreader.h no longer matches and linking fails with an undefined reference to CardReader::mount(). Declare it as Marlin does.
|
@ellensp Thank you for the PR - may I know which Marlin are you refering to ? |
|
It's current Marlin I'm working on pioarduino 51.03.04 (arduino-esp32 3.0.4) support for upstream Marlin, using ESP3DLib 3.0. It's a work in progress and not published yet. |
|
Ok thank you for the clarification. So I hold the PR for the moment for consistency |
Description
src/include/Marlin/cardreader.hdeclares Marlin'sCardReaderfor ESP3DLib's shared SD support, including:In Marlin
bugfix-2.1.x,CardReader::mount()now takes an argument (MarlinFirmware/Marlin#28656):The two declarations mangle to different symbols, so a Marlin build with
ESP3D_WIFISUPPORTandSDSUPPORTfails to link:This PR declares
mount()the way Marlin does now. ESP3DLib's calls (card.mount()inesp_sd.cpp) are unchanged and use the default argument.The declaration now matches Marlin
bugfix-2.1.xafter #28656. Marlin versions from before #28656 have onlymount()without an argument.Testing
MKS TinyBee, Marlin
bugfix-2.1.xwith arduino-esp32 3.0.4 (pioarduino 51.03.04),ESP3D_WIFISUPPORT,SDSUPPORT,WEBSUPPORT:[ESP740],[ESP750]) and the web SD file list release the card from Marlin and mount it again afterwards (Marlin reportsSD card released/SD card ok), and Marlin can still list and print from the card.