From 160c8be191d9f7f13abf9f3969a0f695d7630944 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Mon, 21 Oct 2019 13:38:07 -0500
Subject: [PATCH] Fix BABYSTEP_DISPLAY_TOTAL output

---
 Marlin/src/gcode/motion/M290.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/src/gcode/motion/M290.cpp b/Marlin/src/gcode/motion/M290.cpp
index 7bf274a18d..895060fcf1 100644
--- a/Marlin/src/gcode/motion/M290.cpp
+++ b/Marlin/src/gcode/motion/M290.cpp
@@ -124,7 +124,7 @@ void GcodeSuite::M290() {
           " X", babystep.axis_total[X_AXIS],
           " Y", babystep.axis_total[Y_AXIS],
         #endif
-        " Z", babystep.axis_total[Z_AXIS]
+        " Z", babystep.axis_total[BS_TODO_AXIS(Z_AXIS)]
       );
     }
     #endif