You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current bugfix-2.0.x branch build fails if config has enabled NO_SD_AUTOSTART. E.g. on Melzi where flash space is very limited.
Marlin/src/gcode/sd/M1001.cpp: In static member function 'static void GcodeSuite::M1001()':
Marlin/src/gcode/sd/M1001.cpp:71:3: error: 'card' was not declared in this scope
card.flag.sdprinting = card.flag.sdprintdone = false;
^~~~
Marlin/src/gcode/sd/M1001.cpp:71:3: note: suggested alternative: 'word'
card.flag.sdprinting = card.flag.sdprintdone = false;
^~~~
word
*** [.pio/build/anycubic_mega_zero_melzi_pinda_a2/src/src/gcode/sd/M1001.cpp.o] Error 1
Bug Timeline
Introduced in PR#21840
Expected behavior
Build should be fine.
Actual behavior
Failed to compile.
Steps to Reproduce
Melzi configs. e.g. anycubic mega zero.
#define NO_SD_AUTOSTART (as part of saving flash for leveling sensors).
Version of Marlin Firmware
bugfix-2.0.x
Printer model
Anycubic Mega Zero
Electronics
Melzi
Add-ons
No response
Your Slicer
No response
Host Software
No response
Additional information & file uploads
Simplest fix is to remove #if / #endif around cardreader.h include, so card definition will be imported if SDSUPPORT enabled.
Did you test the latest
bugfix-2.0.x
code?Yes, and the problem still exists.
Bug Description
Current bugfix-2.0.x branch build fails if config has enabled
NO_SD_AUTOSTART
. E.g. on Melzi where flash space is very limited.Bug Timeline
Introduced in PR#21840
Expected behavior
Build should be fine.
Actual behavior
Failed to compile.
Steps to Reproduce
#define NO_SD_AUTOSTART
(as part of saving flash for leveling sensors).Version of Marlin Firmware
bugfix-2.0.x
Printer model
Anycubic Mega Zero
Electronics
Melzi
Add-ons
No response
Your Slicer
No response
Host Software
No response
Additional information & file uploads
Simplest fix is to remove
#if / #endif
aroundcardreader.h
include, socard
definition will be imported ifSDSUPPORT
enabled.The text was updated successfully, but these errors were encountered: