|
@@ -2102,7 +2102,7 @@ static void clean_up_after_endstop_or_probe_move() {
|
2102
|
2102
|
#if ENABLED(BLTOUCH)
|
2103
|
2103
|
|
2104
|
2104
|
void bltouch_command(int angle) {
|
2105
|
|
- servo[Z_ENDSTOP_SERVO_NR].move(angle); // Give the BL-Touch the command and wait
|
|
2105
|
+ MOVE_SERVO(Z_ENDSTOP_SERVO_NR, angle); // Give the BL-Touch the command and wait
|
2106
|
2106
|
safe_delay(BLTOUCH_DELAY);
|
2107
|
2107
|
}
|
2108
|
2108
|
|
|
@@ -2206,7 +2206,7 @@ static void clean_up_after_endstop_or_probe_move() {
|
2206
|
2206
|
|
2207
|
2207
|
#elif HAS_Z_SERVO_ENDSTOP && DISABLED(BLTOUCH)
|
2208
|
2208
|
|
2209
|
|
- servo[Z_ENDSTOP_SERVO_NR].move(z_servo_angle[deploy ? 0 : 1]);
|
|
2209
|
+ MOVE_SERVO(Z_ENDSTOP_SERVO_NR, z_servo_angle[deploy ? 0 : 1]);
|
2210
|
2210
|
|
2211
|
2211
|
#elif ENABLED(Z_PROBE_ALLEN_KEY)
|
2212
|
2212
|
|
|
@@ -6663,7 +6663,7 @@ inline void gcode_M42() {
|
6663
|
6663
|
SERIAL_ERROR_START();
|
6664
|
6664
|
SERIAL_ERRORLNPGM("Z_ENDSTOP_SERVO_NR not setup");
|
6665
|
6665
|
|
6666
|
|
- #else
|
|
6666
|
+ #else // HAS_Z_SERVO_ENDSTOP
|
6667
|
6667
|
|
6668
|
6668
|
const uint8_t probe_index = parser.byteval('P', Z_ENDSTOP_SERVO_NR);
|
6669
|
6669
|
|
|
@@ -6711,10 +6711,10 @@ inline void gcode_M42() {
|
6711
|
6711
|
SET_INPUT_PULLUP(PROBE_TEST_PIN);
|
6712
|
6712
|
bool deploy_state, stow_state;
|
6713
|
6713
|
for (uint8_t i = 0; i < 4; i++) {
|
6714
|
|
- servo[probe_index].move(z_servo_angle[0]); //deploy
|
|
6714
|
+ MOVE_SERVO(probe_index, z_servo_angle[0]); //deploy
|
6715
|
6715
|
safe_delay(500);
|
6716
|
6716
|
deploy_state = READ(PROBE_TEST_PIN);
|
6717
|
|
- servo[probe_index].move(z_servo_angle[1]); //stow
|
|
6717
|
+ MOVE_SERVO(probe_index, z_servo_angle[1]); //stow
|
6718
|
6718
|
safe_delay(500);
|
6719
|
6719
|
stow_state = READ(PROBE_TEST_PIN);
|
6720
|
6720
|
}
|
|
@@ -6738,7 +6738,7 @@ inline void gcode_M42() {
|
6738
|
6738
|
|
6739
|
6739
|
}
|
6740
|
6740
|
else { // measure active signal length
|
6741
|
|
- servo[probe_index].move(z_servo_angle[0]); // deploy
|
|
6741
|
+ MOVE_SERVO(probe_index, z_servo_angle[0]); // deploy
|
6742
|
6742
|
safe_delay(500);
|
6743
|
6743
|
SERIAL_PROTOCOLLNPGM("please trigger probe");
|
6744
|
6744
|
uint16_t probe_counter = 0;
|
|
@@ -6763,7 +6763,7 @@ inline void gcode_M42() {
|
6763
|
6763
|
else
|
6764
|
6764
|
SERIAL_PROTOCOLLNPGM("noise detected - please re-run test"); // less than 2mS pulse
|
6765
|
6765
|
|
6766
|
|
- servo[probe_index].move(z_servo_angle[1]); //stow
|
|
6766
|
+ MOVE_SERVO(probe_index, z_servo_angle[1]); //stow
|
6767
|
6767
|
|
6768
|
6768
|
} // pulse detected
|
6769
|
6769
|
|