-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
[BUG] Extendable MMUs with not precisely 5 slots fail with compile error from SanityCheck.h #22035
Comments
I just commented out these compile errors to see if it will just work then, and the answer is sadly no.
Marlin tries to use code/macors for extruders with index > 7 which unsurprisingly don't exist, since Marlin doesn't support more than 8 extruders. This happens despite It really seems like there might be quite a bit of work still to do in order to make this feature actually work? I can't help but get the impression that the extendability that the code/pull request promised to introduce wasn't tested at all. |
I stopped to 5 actually because my MMU was extendable but just with standard nr of colors |
Fixed in #22036 |
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
When setting
#define MMU_MODEL EXTENDABLE_EMU_MMU2S
in the configuration, which refers toMMUS with configurable number of filaments
, and setEXTRUDERS
to a number that is not 5, i get the following compile error:Additionally, if you set the number of extruders to more than 8 (which should be possible, since up to 15 are supported for an extendable MMU accoring to the source code, i additionally get the following compile error:
Both of these messages shouldn't appear. I've checked the bugfix branch and the problems persist there.
Bug Timeline
The bug of extendable MMUs actually not being extendable has, as far as i can see, been present since the feature of extendable MMU2 was introduced.
Expected behavior
I should be able to run an extendable MMU with a different number than 5 slots, and even with more than 8 slots.
Actual behavior
Marlin fails during debug time because the MMU doesn't have precisely 5 slots and because there are more slots than Marlin supposedly supports.
Steps to Reproduce
#define MMU_MODEL EXTENDABLE_EMU_MMU2S
inConfiguration.h
#define EXTRUDERS 10
inConfiguration.h
SanityCheck.h
throwing errors.Version of Marlin Firmware
2.0.8.2
Printer model
No response
Electronics
No response
Add-ons
No response
Your Slicer
No response
Host Software
No response
Additional information & file uploads
They issue can be quickly traced down here:
In this code, when
MMU_MODEL EXTENDABLE_EMU_MMU2S
is set, it results in the following values being defined:However, neither here nor here is
HAS_EXTENDABLE_MMU
actually checked before throwing a compile error.I'm a bit surprised that i seem to be the first person noticing this and i'm wondering if i'm the first person to actually try to run a MMU with more than 5 slots on Marlin, since this problem seems to have already been there in the commit that introduced this feature (#19912).
It would be nice if this issue could be fixed please :) Paging @GMagician because they wrote this specific feature. (Thank you for your work! I have designed my own extendable MMU and was so happy to see that i wouldn't have to make changes to Marlin because this feature was just recently added… well, almost :P)
The text was updated successfully, but these errors were encountered: