|
@@ -278,17 +278,15 @@ void Endstops::enable(const bool onoff) {
|
278
|
278
|
void Endstops::not_homing() {
|
279
|
279
|
enabled = enabled_globally;
|
280
|
280
|
|
281
|
|
- #if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
|
282
|
|
- // Still 'enabled'? Then endstops are always on and kept in sync.
|
283
|
|
- // Otherwise reset 'live's variables to let axes move in both directions.
|
284
|
|
- if (!enabled) {
|
285
|
|
- #if ENDSTOP_NOISE_THRESHOLD
|
286
|
|
- endstop_poll_count = 0; // Stop filtering (MUST be done first to prevent race condition)
|
287
|
|
- validated_live_state = 0;
|
288
|
|
- #endif
|
289
|
|
- live_state = 0;
|
290
|
|
- }
|
291
|
|
- #endif
|
|
281
|
+ // Still 'enabled'? Then endstops are always on and kept in sync.
|
|
282
|
+ // Otherwise reset 'live's variables to let axes move in both directions.
|
|
283
|
+ if (!enabled) {
|
|
284
|
+ #if ENDSTOP_NOISE_THRESHOLD
|
|
285
|
+ endstop_poll_count = 0; // Stop filtering (MUST be done first to prevent race condition)
|
|
286
|
+ validated_live_state = 0;
|
|
287
|
+ #endif
|
|
288
|
+ live_state = 0;
|
|
289
|
+ }
|
292
|
290
|
}
|
293
|
291
|
|
294
|
292
|
#if ENABLED(VALIDATE_HOMING_ENDSTOPS)
|