-
-
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
[BUG] BOARD_MKS_BASE_16 + FILAMENT_RUNOUT_SENSOR won't compile [SOLVED] #16860
Comments
This behavior was changed in #16806 by @DanielMazurkiewicz & @thinkyhead. There isn't a
The MKS Base 1.5 pins file doesn't undefine the pin automatically, so it's set to 4 (and allows for a successful compile): Marlin/Marlin/src/pins/ramps/pins_RAMPS.h Lines 252 to 255 in 71539bc
Maybe @DanielMazurkiewicz can explain why the change was needed on the 1.6 pins file & not the 1.5/other BASE boards. |
Thanks for the explanations. But I don't understand the reasons why 1.6 does not" behave" as other RAMPS... A while ago, I had FIL_RUNOUT_PIN defined in Configuration.h. At this time, I did use Z+ for filament runout sensor. I then stopped doing this, decided to use the default pin D4, and removed the FIL_RUNOUT_PIN definition from Configuration.h : Marlin and me were happy and I completely forgot about it ! Maybe, in Configuration.h comment, it could be good to add :
|
Here is the original proposed change: d9ce0f1 |
@thisiskeithb @yet-another-average-joe
Sorry for late answer, but the answer is simple - the board does not define pin FILAMENT_RUNOUT_SENSOR #16783 . This pin has to be remapped from one of other pins defined on board. Aldo wasn't fully aware of issues with Marlin code refactoring when made that PR. But if there were no issues with that I would really keep clean board pin definitions in one file and any mods/redefinitions in separate file in main directory, similar to configuration.h. That would keep code clean easier to understand and modify and would beautifully fall into HAL idea. |
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. |
Bug Description
Marlin 2.0.x bugfix 2.0.4 / 71539bc
BOARD_MKS_BASE_16 + FILAMENT_RUNOUT_SENSOR won't compile :
Gives this error :
My Configurations
Required: Please include a ZIP file containing your
Configuration.h
andConfiguration_adv.h
files.Marlin.zip
Steps to Reproduce
define MOTHERBOARD = BOARD_MKS_BASE_16
Expected behavior: [What you expect to happen]
the preprocessor using the default pin for filament runout sensor (digital 4)
Actual behavior: [What actually happens]
the preprocessor throws an error
Additional Information
workaround : define MOTHERBOARD = BOARD_MKS_BASE_15
(1.5 always worked fine for MKS Base 1.6)
OR
in pins_MKS_BASE_16.h, commenting out :
It seems FIL_RUNOUT_PIN is redefined as -1 somewhere, and upsets sanity check
Can't figure where's the bug : some include order ?
The text was updated successfully, but these errors were encountered: