Skip to content

Fix issues with inconsistent order of includes across source files#33

Closed
pelrun wants to merge 1 commit intoMarlinFirmware:Marlin_v1from
pelrun:Marlin_v1
Closed

Fix issues with inconsistent order of includes across source files#33
pelrun wants to merge 1 commit intoMarlinFirmware:Marlin_v1from
pelrun:Marlin_v1

Conversation

@pelrun
Copy link

@pelrun pelrun commented Dec 12, 2011

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.

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.
@pelrun
Copy link
Author

pelrun commented Dec 18, 2011

Any chance this will get pulled in soon? It's a pretty simple fix.

@bkubicek
Copy link
Contributor

I did overwork the includes today. Can you have a look and if it is allright for you?

@pelrun
Copy link
Author

pelrun commented Dec 22, 2011

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.

@pelrun pelrun closed this Dec 22, 2011
rosenhouse pushed a commit to rosenhouse/Marlin that referenced this pull request Feb 16, 2015
thinkyhead referenced this pull request in thinkyhead/Marlin Dec 3, 2016
@zed-maker zed-maker mentioned this pull request Feb 5, 2020
Christoph-D pushed a commit to Christoph-D/Marlin that referenced this pull request Jun 1, 2020
Malderin pushed a commit to Malderin/Marlin_2.0.x_official that referenced this pull request Dec 30, 2020
maz3max pushed a commit to maz3max/Marlin that referenced this pull request Aug 24, 2021
classicrocker883 pushed a commit to classicrocker883/Marlin that referenced this pull request Oct 20, 2023
drewmoseley pushed a commit to drewmoseley/Marlin that referenced this pull request Nov 8, 2023
* PFW-1351 WIP

* Fix bug with cooldown timing due to bad bitfield.

* Use default safety timer value for timeout
arades79 pushed a commit to CELLINKAB/Marlin that referenced this pull request Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments