Skip to content

Commit

Permalink
Fix G28 debug line, M569 calls (MarlinFirmware#16213)
Browse files Browse the repository at this point in the history
  • Loading branch information
danym21 authored and webs1821 committed Jan 2, 2020
1 parent 47605ba commit e6fbaaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Marlin/src/gcode/calibrate/G28.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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)
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit e6fbaaf

Please sign in to comment.