File tree 3 files changed +4
-8
lines changed
3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 58
58
#endif
59
59
60
60
#if TEMP_SENSOR_SOC
61
- #if !defined( TEMP_SOC_PIN )
61
+ #ifndef TEMP_SOC_PIN
62
62
#error "TEMP_SOC_PIN must be defined to use TEMP_SENSOR_SOC."
63
- #endif
64
-
65
- #if defined(TEMP_SOC_PIN ) && IS_GPIO_PIN (TEMP_SOC_PIN )
63
+ #elif IS_GPIO_PIN (TEMP_SOC_PIN )
66
64
#error "TEMP_SOC_PIN must not be a valid GPIO pin to avoid conflicts."
67
65
#endif
68
66
#endif
Original file line number Diff line number Diff line change 23
23
#ifdef ARDUINO_ARCH_HC32
24
24
#ifdef REDIRECT_PRINTF_TO_SERIAL
25
25
26
- #if !defined( __GNUC__)
26
+ #ifndef __GNUC__
27
27
#error "only GCC is supported"
28
28
#endif
29
29
Original file line number Diff line number Diff line change @@ -229,9 +229,7 @@ float segments_per_second = DEFAULT_SEGMENTS_PER_SECOND;
229
229
// Move all carriages together linearly until an endstop is hit.
230
230
// do_blocking_move_to_xy_z(pos, mlz, homing_feedrate(Z_AXIS));
231
231
232
- current_position.x = 0 ;
233
- current_position.y = 0 ;
234
- current_position.z = max_length (Z_AXIS) ;
232
+ current_position.set (0 , 0 , max_length (Z_AXIS));
235
233
line_to_current_position (homing_feedrate (Z_AXIS));
236
234
planner.synchronize ();
237
235
You can’t perform that action at this time.
0 commit comments