Can't use the ENABLED macro as a boolean
This commit is contained in:
parent
b4b5c7a6b7
commit
13f85a2b50
1 changed files with 7 additions and 1 deletions
|
@ -37,7 +37,13 @@
|
|||
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);
|
||||
#if ENABLED(HAS_Z_MIN_PROBE)
|
||||
enable_z_probe(false);
|
||||
|
|
Reference in a new issue