Skip to content

Commit b27bc67

Browse files
committed
Set initial endstops state
1 parent cb8b995 commit b27bc67

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Marlin/src/module/endstops.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,15 @@ class Endstops {
7070

7171
static esbits_t current_endstop_bits, old_endstop_bits;
7272

73-
Endstops() {};
73+
Endstops() {
74+
enable_globally(
75+
#if ENABLED(ENDSTOPS_ALWAYS_ON_DEFAULT)
76+
true
77+
#else
78+
false
79+
#endif
80+
);
81+
};
7482

7583
/**
7684
* Initialize the endstop pins

0 commit comments

Comments
 (0)