From f28e366b775919a2c604b0ecad60c73b0b9ca9ce Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Thu, 24 May 2018 03:02:44 -0500
Subject: [PATCH] Followup for core endstops

---
 Marlin/src/module/stepper.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/src/module/stepper.cpp b/Marlin/src/module/stepper.cpp
index 62f91d5ecf..914cc86c86 100644
--- a/Marlin/src/module/stepper.cpp
+++ b/Marlin/src/module/stepper.cpp
@@ -1571,7 +1571,7 @@ uint32_t Stepper::stepper_block_phase_isr() {
       #if IS_CORE
         // Define conditions for checking endstops
         #define S_(N) current_block->steps[CORE_AXIS_##N]
-        #define D_(N) motor_direction(CORE_AXIS_##N)
+        #define D_(N) TEST(current_block->direction_bits, CORE_AXIS_##N)
       #endif
 
       #if CORE_IS_XY || CORE_IS_XZ