diff --git a/Marlin/stepper.cpp b/Marlin/stepper.cpp index 14f0475762..f74f2f9734 100644 --- a/Marlin/stepper.cpp +++ b/Marlin/stepper.cpp @@ -374,7 +374,7 @@ inline void update_endstops() { UPDATE_ENDSTOP(Y, MAX); #endif } - #if defined(COREXY) || defined(COREXZ) + #if defined(COREXY) } #endif @@ -459,6 +459,9 @@ inline void update_endstops() { } #endif } + #if defined(COREXZ) + } + #endif old_endstop_bits = current_endstop_bits; }