|
@ -1168,7 +1168,7 @@ XYZ_CONSTS_FROM_CONFIG(signed char, home_dir, HOME_DIR); |
|
|
static void set_axis_is_at_home(AxisEnum axis) { |
|
|
static void set_axis_is_at_home(AxisEnum axis) { |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("set_axis_is_at_home(", (unsigned long)axis); |
|
|
SERIAL_ECHOPAIR("set_axis_is_at_home(", axis); |
|
|
SERIAL_ECHOLNPGM(") >>>"); |
|
|
SERIAL_ECHOLNPGM(") >>>"); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -1256,7 +1256,7 @@ static void set_axis_is_at_home(AxisEnum axis) { |
|
|
} |
|
|
} |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("<<< set_axis_is_at_home(", (unsigned long)axis); |
|
|
SERIAL_ECHOPAIR("<<< set_axis_is_at_home(", axis); |
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -1651,7 +1651,7 @@ static void setup_for_endstop_move() { |
|
|
if (doRaise) { |
|
|
if (doRaise) { |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("Raise Z (after) by ", (float)Z_RAISE_AFTER_PROBING); |
|
|
SERIAL_ECHOPAIR("Raise Z (after) by ", Z_RAISE_AFTER_PROBING); |
|
|
SERIAL_EOL; |
|
|
SERIAL_EOL; |
|
|
SERIAL_ECHO("> SERVO_ENDSTOPS > raise_z_after_probing()"); |
|
|
SERIAL_ECHO("> SERVO_ENDSTOPS > raise_z_after_probing()"); |
|
|
SERIAL_EOL; |
|
|
SERIAL_EOL; |
|
@ -1747,7 +1747,7 @@ static void setup_for_endstop_move() { |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOLNPGM("probe_pt >>>"); |
|
|
SERIAL_ECHOLNPGM("probe_pt >>>"); |
|
|
SERIAL_ECHOPAIR("> ProbeAction:", (unsigned long)probe_action); |
|
|
SERIAL_ECHOPAIR("> ProbeAction:", probe_action); |
|
|
SERIAL_EOL; |
|
|
SERIAL_EOL; |
|
|
DEBUG_POS("", current_position); |
|
|
DEBUG_POS("", current_position); |
|
|
} |
|
|
} |
|
@ -1968,7 +1968,7 @@ static void setup_for_endstop_move() { |
|
|
static void homeaxis(AxisEnum axis) { |
|
|
static void homeaxis(AxisEnum axis) { |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR(">>> homeaxis(", (unsigned long)axis); |
|
|
SERIAL_ECHOPAIR(">>> homeaxis(", axis); |
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -2156,7 +2156,7 @@ static void homeaxis(AxisEnum axis) { |
|
|
|
|
|
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("<<< homeaxis(", (unsigned long)axis); |
|
|
SERIAL_ECHOPAIR("<<< homeaxis(", axis); |
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
SERIAL_ECHOLNPGM(")"); |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -2484,7 +2484,7 @@ inline void gcode_G28() { |
|
|
feedrate = max_feedrate[Z_AXIS] * 60; // feedrate (mm/m) = max_feedrate (mm/s)
|
|
|
feedrate = max_feedrate[Z_AXIS] * 60; // feedrate (mm/m) = max_feedrate (mm/s)
|
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("Raise Z (before homing) to ", (float)(MIN_Z_HEIGHT_FOR_HOMING)); |
|
|
SERIAL_ECHOPAIR("Raise Z (before homing) to ", (MIN_Z_HEIGHT_FOR_HOMING)); |
|
|
SERIAL_EOL; |
|
|
SERIAL_EOL; |
|
|
DEBUG_POS("> (home_all_axis || homeZ)", current_position); |
|
|
DEBUG_POS("> (home_all_axis || homeZ)", current_position); |
|
|
DEBUG_POS("> (home_all_axis || homeZ)", destination); |
|
|
DEBUG_POS("> (home_all_axis || homeZ)", destination); |
|
@ -3115,7 +3115,7 @@ inline void gcode_G28() { |
|
|
if (probePointCounter) { |
|
|
if (probePointCounter) { |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("z_before = (between) ", (float)(Z_RAISE_BETWEEN_PROBINGS + current_position[Z_AXIS])); |
|
|
SERIAL_ECHOPAIR("z_before = (between) ", (Z_RAISE_BETWEEN_PROBINGS + current_position[Z_AXIS])); |
|
|
SERIAL_EOL; |
|
|
SERIAL_EOL; |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -3123,7 +3123,7 @@ inline void gcode_G28() { |
|
|
else { |
|
|
else { |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
#if ENABLED(DEBUG_LEVELING_FEATURE) |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
if (DEBUGGING(LEVELING)) { |
|
|
SERIAL_ECHOPAIR("z_before = (before) ", (float)Z_RAISE_BEFORE_PROBING); |
|
|
SERIAL_ECHOPAIR("z_before = (before) ", Z_RAISE_BEFORE_PROBING); |
|
|
SERIAL_EOL; |
|
|
SERIAL_EOL; |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
@ -3481,6 +3481,9 @@ inline void gcode_G92() { |
|
|
inline void gcode_M0_M1() { |
|
|
inline void gcode_M0_M1() { |
|
|
char* args = current_command_args; |
|
|
char* args = current_command_args; |
|
|
|
|
|
|
|
|
|
|
|
uint8_t test_value = 12; |
|
|
|
|
|
SERIAL_ECHOPAIR("TEST", test_value); |
|
|
|
|
|
|
|
|
millis_t codenum = 0; |
|
|
millis_t codenum = 0; |
|
|
bool hasP = false, hasS = false; |
|
|
bool hasP = false, hasS = false; |
|
|
if (code_seen('P')) { |
|
|
if (code_seen('P')) { |
|
|