|
|
@ -1014,7 +1014,7 @@ void servo_init() {
|
|
|
|
#if ENABLED(NEOPIXEL_RGBW_LED)
|
|
|
|
#if ENABLED(NEOPIXEL_RGBW_LED)
|
|
|
|
|
|
|
|
|
|
|
|
const uint32_t color = pixels.Color(r, g, b, w);
|
|
|
|
const uint32_t color = pixels.Color(r, g, b, w);
|
|
|
|
static int nextLed = 0;
|
|
|
|
static uint16_t nextLed = 0;
|
|
|
|
|
|
|
|
|
|
|
|
if (!isSequence)
|
|
|
|
if (!isSequence)
|
|
|
|
set_neopixel_color(color);
|
|
|
|
set_neopixel_color(color);
|
|
|
@ -5602,12 +5602,14 @@ void home_all_axes() { gcode_G28(true); }
|
|
|
|
|
|
|
|
|
|
|
|
bool G38_pass_fail = false;
|
|
|
|
bool G38_pass_fail = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Get direction of move and retract
|
|
|
|
#if ENABLED(PROBE_DOUBLE_TOUCH)
|
|
|
|
float retract_mm[XYZ];
|
|
|
|
// Get direction of move and retract
|
|
|
|
LOOP_XYZ(i) {
|
|
|
|
float retract_mm[XYZ];
|
|
|
|
float dist = destination[i] - current_position[i];
|
|
|
|
LOOP_XYZ(i) {
|
|
|
|
retract_mm[i] = FABS(dist) < G38_MINIMUM_MOVE ? 0 : home_bump_mm((AxisEnum)i) * (dist > 0 ? -1 : 1);
|
|
|
|
float dist = destination[i] - current_position[i];
|
|
|
|
}
|
|
|
|
retract_mm[i] = FABS(dist) < G38_MINIMUM_MOVE ? 0 : home_bump_mm((AxisEnum)i) * (dist > 0 ? -1 : 1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
stepper.synchronize(); // wait until the machine is idle
|
|
|
|
stepper.synchronize(); // wait until the machine is idle
|
|
|
|
|
|
|
|
|
|
|
@ -5671,7 +5673,7 @@ void home_all_axes() { gcode_G28(true); }
|
|
|
|
// If any axis has enough movement, do the move
|
|
|
|
// If any axis has enough movement, do the move
|
|
|
|
LOOP_XYZ(i)
|
|
|
|
LOOP_XYZ(i)
|
|
|
|
if (FABS(destination[i] - current_position[i]) >= G38_MINIMUM_MOVE) {
|
|
|
|
if (FABS(destination[i] - current_position[i]) >= G38_MINIMUM_MOVE) {
|
|
|
|
if (!parser.seenval('F')) feedrate_mm_s = homing_feedrate(i);
|
|
|
|
if (!parser.seenval('F')) feedrate_mm_s = homing_feedrate((AxisEnum)i);
|
|
|
|
// If G38.2 fails throw an error
|
|
|
|
// If G38.2 fails throw an error
|
|
|
|
if (!G38_run_probe() && is_38_2) {
|
|
|
|
if (!G38_run_probe() && is_38_2) {
|
|
|
|
SERIAL_ERROR_START();
|
|
|
|
SERIAL_ERROR_START();
|
|
|
|