Skip to content

Commit afc2dd6

Browse files
committed
🎨 Misc. cleanup 25-01
1 parent 5768b42 commit afc2dd6

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Marlin/src/HAL/HC32/inc/SanityCheck.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@
5858
#endif
5959

6060
#if TEMP_SENSOR_SOC
61-
#if !defined(TEMP_SOC_PIN)
61+
#ifndef TEMP_SOC_PIN
6262
#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)
6664
#error "TEMP_SOC_PIN must not be a valid GPIO pin to avoid conflicts."
6765
#endif
6866
#endif

Marlin/src/HAL/HC32/printf_retarget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#ifdef ARDUINO_ARCH_HC32
2424
#ifdef REDIRECT_PRINTF_TO_SERIAL
2525

26-
#if !defined(__GNUC__)
26+
#ifndef __GNUC__
2727
#error "only GCC is supported"
2828
#endif
2929

Marlin/src/module/scara.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ float segments_per_second = DEFAULT_SEGMENTS_PER_SECOND;
229229
// Move all carriages together linearly until an endstop is hit.
230230
//do_blocking_move_to_xy_z(pos, mlz, homing_feedrate(Z_AXIS));
231231

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));
235233
line_to_current_position(homing_feedrate(Z_AXIS));
236234
planner.synchronize();
237235

0 commit comments

Comments
 (0)