mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-23 20:18:52 +00:00
Merge pull request #3679 from thinkyhead/rc_fix_3677
Can't use the ENABLED macro as a boolean
This commit is contained in:
commit
a5a6b86898
@ -37,7 +37,13 @@
|
|||||||
Endstops endstops;
|
Endstops endstops;
|
||||||
|
|
||||||
Endstops::Endstops() {
|
Endstops::Endstops() {
|
||||||
enable_globally(ENABLED(ENDSTOPS_ONLY_FOR_HOMING));
|
enable_globally(
|
||||||
|
#if ENABLED(ENDSTOPS_ONLY_FOR_HOMING)
|
||||||
|
true
|
||||||
|
#else
|
||||||
|
false
|
||||||
|
#endif
|
||||||
|
);
|
||||||
enable(true);
|
enable(true);
|
||||||
#if ENABLED(HAS_Z_MIN_PROBE)
|
#if ENABLED(HAS_Z_MIN_PROBE)
|
||||||
enable_z_probe(false);
|
enable_z_probe(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user