Skip to content

Commit

Permalink
馃帹 Misc. cleanup 25-01
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 26, 2024
1 parent 5768b42 commit afc2dd6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions Marlin/src/HAL/HC32/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,9 @@
#endif

#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."
#endif

#if defined(TEMP_SOC_PIN) && IS_GPIO_PIN(TEMP_SOC_PIN)
#elif IS_GPIO_PIN(TEMP_SOC_PIN)
#error "TEMP_SOC_PIN must not be a valid GPIO pin to avoid conflicts."
#endif
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/HAL/HC32/printf_retarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#ifdef ARDUINO_ARCH_HC32
#ifdef REDIRECT_PRINTF_TO_SERIAL

#if !defined(__GNUC__)
#ifndef __GNUC__
#error "only GCC is supported"
#endif

Expand Down
4 changes: 1 addition & 3 deletions Marlin/src/module/scara.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ float segments_per_second = DEFAULT_SEGMENTS_PER_SECOND;
// Move all carriages together linearly until an endstop is hit.
//do_blocking_move_to_xy_z(pos, mlz, homing_feedrate(Z_AXIS));

current_position.x = 0 ;
current_position.y = 0 ;
current_position.z = max_length(Z_AXIS) ;
current_position.set(0, 0, max_length(Z_AXIS));
line_to_current_position(homing_feedrate(Z_AXIS));
planner.synchronize();

Expand Down

0 comments on commit afc2dd6

Please sign in to comment.