🎨 Misc. cleanup 25-01
This commit is contained in:
parent
5768b42c39
commit
afc2dd6cab
|
@ -58,11 +58,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if TEMP_SENSOR_SOC
|
#if TEMP_SENSOR_SOC
|
||||||
#if !defined(TEMP_SOC_PIN)
|
#ifndef TEMP_SOC_PIN
|
||||||
#error "TEMP_SOC_PIN must be defined to use TEMP_SENSOR_SOC."
|
#error "TEMP_SOC_PIN must be defined to use TEMP_SENSOR_SOC."
|
||||||
#endif
|
#elif IS_GPIO_PIN(TEMP_SOC_PIN)
|
||||||
|
|
||||||
#if defined(TEMP_SOC_PIN) && IS_GPIO_PIN(TEMP_SOC_PIN)
|
|
||||||
#error "TEMP_SOC_PIN must not be a valid GPIO pin to avoid conflicts."
|
#error "TEMP_SOC_PIN must not be a valid GPIO pin to avoid conflicts."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
#ifdef ARDUINO_ARCH_HC32
|
#ifdef ARDUINO_ARCH_HC32
|
||||||
#ifdef REDIRECT_PRINTF_TO_SERIAL
|
#ifdef REDIRECT_PRINTF_TO_SERIAL
|
||||||
|
|
||||||
#if !defined(__GNUC__)
|
#ifndef __GNUC__
|
||||||
#error "only GCC is supported"
|
#error "only GCC is supported"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -229,9 +229,7 @@ float segments_per_second = DEFAULT_SEGMENTS_PER_SECOND;
|
||||||
// Move all carriages together linearly until an endstop is hit.
|
// Move all carriages together linearly until an endstop is hit.
|
||||||
//do_blocking_move_to_xy_z(pos, mlz, homing_feedrate(Z_AXIS));
|
//do_blocking_move_to_xy_z(pos, mlz, homing_feedrate(Z_AXIS));
|
||||||
|
|
||||||
current_position.x = 0 ;
|
current_position.set(0, 0, max_length(Z_AXIS));
|
||||||
current_position.y = 0 ;
|
|
||||||
current_position.z = max_length(Z_AXIS) ;
|
|
||||||
line_to_current_position(homing_feedrate(Z_AXIS));
|
line_to_current_position(homing_feedrate(Z_AXIS));
|
||||||
planner.synchronize();
|
planner.synchronize();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue