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
Compilation of the unit G61.cpp fails if no extruders are configured. This is because a single line of code is not surrounded by the " #if HAS_EXTRUDERS" cpp command. The function GcodeSuite::G61() has this line: float epos = stored_position[slot].e;
which needs to have the guard of HAS_EXTRUDERS.
Bug Timeline
New bug introduced on July 26, 2024 by commit 78e111a for issue #27281.
Expected behavior
I expect the compile to succeed when no extruders are defined.
Actual behavior
The compile fails with unknown symbols since the "e" field of the saved position struct is missing.
Steps to Reproduce
Create a Configuration.h with EXTRUDERS defined to be 0.
Make sure SAVED_POSITIONS in Configuration_adv.h is greater than 0.
Try to build
The build fails
Version of Marlin Firmware
Bugfix-2.1.x
Printer model
NA
Electronics
BTT Octopus V1.1
LCD/Controller
None
Other add-ons
None
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
A ZIP file containing your Configuration.h and Configuration_adv.h.
Did you test the latest
bugfix-2.1.x
code?Yes, and the problem still exists.
Bug Description
Compilation of the unit G61.cpp fails if no extruders are configured. This is because a single line of code is not surrounded by the " #if HAS_EXTRUDERS" cpp command. The function GcodeSuite::G61() has this line:
float epos = stored_position[slot].e;
which needs to have the guard of HAS_EXTRUDERS.
Bug Timeline
New bug introduced on July 26, 2024 by commit 78e111a for issue #27281.
Expected behavior
I expect the compile to succeed when no extruders are defined.
Actual behavior
The compile fails with unknown symbols since the "e" field of the saved position struct is missing.
Steps to Reproduce
Version of Marlin Firmware
Bugfix-2.1.x
Printer model
NA
Electronics
BTT Octopus V1.1
LCD/Controller
None
Other add-ons
None
Bed Leveling
None
Your Slicer
None
Host Software
None
Don't forget to include
Configuration.h
andConfiguration_adv.h
.Additional information & file uploads
Configuration.zip
The text was updated successfully, but these errors were encountered: