-
-
Notifications
You must be signed in to change notification settings - Fork 19.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SWITCHING_TOOLHEAD_Z_HOP #22214
Comments
I opened an issu ([BUG] Avec MAGNETIC_SWITCHING_TOOLHEAD, erreur de compilation #19270) on this and my solution was the same (adding the missing line). My remark was not considered and the problem closed. |
This is not the correct fix. SWITCHING_TOOLHEAD_Z_HOP is not required by the MAGNETIC_SWITCHING_TOOLHEAD code. It is only in the ELECTROMAGNETIC_SWITCHING_TOOLHEAD code. The sanity test is incorrect +++ b/Marlin/src/inc/SanityCheck.h
@@ -1256,15 +1256,15 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#error "(ELECTRO)MAGNETIC_SWITCHING_TOOLHEAD requires SWITCHING_TOOLHEAD_Y_POS"
#elif !defined(SWITCHING_TOOLHEAD_X_POS)
#error "(ELECTRO)MAGNETIC_SWITCHING_TOOLHEAD requires SWITCHING_TOOLHEAD_X_POS"
- #elif !defined(SWITCHING_TOOLHEAD_Z_HOP)
- #error "(ELECTRO)MAGNETIC_SWITCHING_TOOLHEAD requires SWITCHING_TOOLHEAD_Z_HOP."
#elif !defined(SWITCHING_TOOLHEAD_Y_CLEAR)
#error "(ELECTRO)MAGNETIC_SWITCHING_TOOLHEAD requires SWITCHING_TOOLHEAD_Y_CLEAR."
#elif ENABLED(ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
#if ENABLED(EXT_SOLENOID)
- #error "(ELECTRO)MAGNETIC_SWITCHING_TOOLHEAD and EXT_SOLENOID are incompatible. (Pins are used twice.)"
+ #error "ELECTROMAGNETIC_SWITCHING_TOOLHEAD and EXT_SOLENOID are incompatible. (Pins are used twice.)"
#elif !PIN_EXISTS(SOL0)
- #error "(ELECTRO)MAGNETIC_SWITCHING_TOOLHEAD requires SOL0_PIN."
+ #error "ELECTROMAGNETIC_SWITCHING_TOOLHEAD requires SOL0_PIN."
+ #elif !defined(SWITCHING_TOOLHEAD_Z_HOP)
+ #error "ELECTROMAGNETIC_SWITCHING_TOOLHEAD requires SWITCHING_TOOLHEAD_Z_HOP."
#endif
#endif
#endif
@yopla31 please try and remember Marlin is maintained by volunteers! Giving up their free time to help. |
Thanks for the replay @ellensp I am still pretty new to this stuff. I am unsure how to bypass the sanity checks I'll try to read up more on it. I am sure with the PrinterMods Xchange system there will be a few people that will be running into this problem soon enough so glad we are getting it addressed. Thanks to all you folks that take the time to hammer out these problems it's much appreciated. |
@madshammy try and read the DIFF file above I've also created a PR, so this will be fixed in marlin shorty. |
Leave open till changes are in Marlin. |
@ellensp , it is very important to remind each of us that the community is working on a voluntary basis for the evolution of Marlin. It is a collegial work where the users report possible problems, propose evolutions, propose workarounds to the problems, and others fix the code. |
This has now been merged into marlin. Closing. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Did you test the latest
bugfix-2.0.x
code?Yes, and the problem still exists.
Bug Description
Having an issue with getting SWITCHING_TOOLHEAD_Z_HOP to become active in my Marlin build. I have #define MAGNETIC_SWITCHING_TOOLHEAD uncommitted. upon build i keep getting an error,
Bug Timeline
New
Expected behavior
I expected this to follow the definition in line 308
#if ANY(SWITCHING_TOOLHEAD, MAGNETIC_SWITCHING_TOOLHEAD, ELECTROMAGNETIC_SWITCHING_TOOLHEAD)
Actual behavior
Steps to Reproduce
#define MAGNETIC_SWITCHING_TOOLHEAD
had to bring this line up to make work
Version of Marlin Firmware
#define CONFIGURATION_H_VERSION 02000900
Printer model
Anycubic
Electronics
No response
Add-ons
No response
Your Slicer
Cura
Host Software
No response
Additional information & file uploads
No response
The text was updated successfully, but these errors were encountered: