🩹 Fix Malyan M300 with S-Curve compile

Fixes #24548
This commit is contained in:
Scott Lahteine 2022-08-04 01:17:10 -05:00
parent 17794e18ae
commit 9a42d1e577
2 changed files with 8 additions and 5 deletions

View File

@ -1345,7 +1345,7 @@ void Stepper::set_directions() {
} }
FORCE_INLINE int32_t Stepper::_eval_bezier_curve(const uint32_t curr_step) { FORCE_INLINE int32_t Stepper::_eval_bezier_curve(const uint32_t curr_step) {
#if (defined(__arm__) || defined(__thumb__)) && !defined(STM32G0B1xx) // TODO: Test define STM32G0xx versus STM32G0B1xx #if (defined(__arm__) || defined(__thumb__)) && __ARM_ARCH >= 6 && !defined(STM32G0B1xx) // TODO: Test define STM32G0xx versus STM32G0B1xx
// For ARM Cortex M3/M4 CPUs, we have the optimized assembler version, that takes 43 cycles to execute // For ARM Cortex M3/M4 CPUs, we have the optimized assembler version, that takes 43 cycles to execute
uint32_t flo = 0; uint32_t flo = 0;

View File

@ -51,10 +51,13 @@
// //
// Limit Switches // Limit Switches
// //
#define X_MAX_PIN PC13 #define X_STOP_PIN PC13
#define Y_MAX_PIN PC14 #define Y_STOP_PIN PC14
#define Z_MAX_PIN PC15 #define Z_STOP_PIN PC15
#define Z_MIN_PIN PB7
#ifndef Z_MIN_PROBE_PIN
#define Z_MIN_PROBE_PIN PB7
#endif
// //
// Steppers // Steppers