-
-
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
Fix issues with inconsistent order of includes across source files #33
Conversation
Marlin.h always needs pins.h to be included before it, this was only done in some files and not others. Marlin.h now explicitly includes everything it needs. Also, include order was different for each source file, this has been cleaned up. Should fix issues with certain pin options not working properly or even compiling, such as the motor enable pins.
Any chance this will get pulled in soon? It's a pretty simple fix. |
I did overwork the includes today. Can you have a look and if it is allright for you? |
I think it's probably a good idea to limit the marlin.h includes just to the files that directly need access to the marlin configuration/pins stuff. Certainly, if we can avoid making changes to the files that are just included directly from other projects and don't use anything from marlin (I'm thinking of the SD card support here) then it's a bit easier to integrate fixes from their parent projects. That said, if it works, I'm okay with it as it is. Any changes I care enough about I'll put in a new pull request. |
Missing "break;"
Add status in move menu
* PFW-1351 WIP * Fix bug with cooldown timing due to bad bitfield. * Use default safety timer value for timeout
Tmp117 error value
Marlin.h always needs pins.h to be included before it, this was only
done in some files and not others. Marlin.h now explicitly includes
what it needs. Also, include order was different for each source
file, this has been cleaned up.
Should fix issues with certain pin options not working properly or even
compiling, such as the motor enable pins.