From 6e8dcba698fe79ffe789b866c6b541033b0851fd Mon Sep 17 00:00:00 2001 From: danym21 <54744475+danym21@users.noreply.github.com> Date: Sun, 15 Dec 2019 19:00:00 +0100 Subject: [PATCH] Fix G28 debug line, M569 calls (#16213) --- Marlin/src/gcode/calibrate/G28.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/src/gcode/calibrate/G28.cpp b/Marlin/src/gcode/calibrate/G28.cpp index b7af871b11..6826a397b9 100644 --- a/Marlin/src/gcode/calibrate/G28.cpp +++ b/Marlin/src/gcode/calibrate/G28.cpp @@ -262,7 +262,7 @@ void GcodeSuite::G28(const bool always_home_all) { #if HAS_HOMING_CURRENT auto debug_current = [](const char * const s, const int16_t a, const int16_t b){ - DEBUG_ECHO(s); DEBUG_ECHOLNPGM(" current: ", a, " -> ", b); + DEBUG_ECHO(s); DEBUG_ECHOLNPAIR(" current: ", a, " -> ", b); }; #if HAS_CURRENT_HOME(X) const int16_t tmc_save_current_X = stepperX.getMilliamps(); @@ -288,7 +288,7 @@ void GcodeSuite::G28(const bool always_home_all) { #if BOTH(STEALTHCHOP_XY, HOME_USING_SPREADCYCLE) if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Set XY to spreadCycle..."); - process_subcommands_now_P(PSTR("M569S0XY")); + process_subcommands_now_P(PSTR("M569 S0 X Y")); #endif #if ENABLED(IMPROVE_HOMING_RELIABILITY) @@ -517,7 +517,7 @@ void GcodeSuite::G28(const bool always_home_all) { #if BOTH(STEALTHCHOP_XY, HOME_USING_SPREADCYCLE) if (DEBUGGING(LEVELING)) DEBUG_ECHOLNPGM("Set XY to StealthChop..."); - process_subcommands_now_P(PSTR("M569S1XY")); + process_subcommands_now_P(PSTR("M569 S1 X Y")); #endif ui.refresh();