Skip to content

[2.0.x] Fix drivers.h dependency, defer macro evaluation#11450

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_idex_crash_fix
Aug 4, 2018
Merged

[2.0.x] Fix drivers.h dependency, defer macro evaluation#11450
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_idex_crash_fix

Conversation

@thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Aug 4, 2018

Addressing #11387.

Until macros are actually evaluated, they can refer to things that are not yet defined. So only drivers.h, Configuration.h, and Conditionals_LCD.h need to be included ahead of using the macros defined in drivers.h. The first file that uses them is Configuration_adv.h, so it must have its defines for X_DUAL_STEPPER_DRIVERS and DUAL_X_CARRIAGE ahead of its uses.

Counterpart to #11449

@thinkyhead thinkyhead merged commit 131d216 into MarlinFirmware:bugfix-2.0.x Aug 4, 2018
@thinkyhead thinkyhead deleted the bf2_idex_crash_fix branch August 4, 2018 02:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant