Skip to content

Commit 9da34bd

Browse files
thinkyheadAndy-Big
authored andcommitted
🩹 Fix Malyan M300 with S-Curve compile
Fixes MarlinFirmware#24548
1 parent e0da965 commit 9da34bd

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Marlin/src/module/stepper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,7 +1344,7 @@ void Stepper::set_directions() {
13441344
}
13451345

13461346
FORCE_INLINE int32_t Stepper::_eval_bezier_curve(const uint32_t curr_step) {
1347-
#if (defined(__arm__) || defined(__thumb__)) && !defined(STM32G0B1xx) // TODO: Test define STM32G0xx versus STM32G0B1xx
1347+
#if (defined(__arm__) || defined(__thumb__)) && __ARM_ARCH >= 6 && !defined(STM32G0B1xx) // TODO: Test define STM32G0xx versus STM32G0B1xx
13481348

13491349
// For ARM Cortex M3/M4 CPUs, we have the optimized assembler version, that takes 43 cycles to execute
13501350
uint32_t flo = 0;

Marlin/src/pins/stm32f0/pins_MALYAN_M300.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,13 @@
5151
//
5252
// Limit Switches
5353
//
54-
#define X_MAX_PIN PC13
55-
#define Y_MAX_PIN PC14
56-
#define Z_MAX_PIN PC15
57-
#define Z_MIN_PIN PB7
54+
#define X_STOP_PIN PC13
55+
#define Y_STOP_PIN PC14
56+
#define Z_STOP_PIN PC15
57+
58+
#ifndef Z_MIN_PROBE_PIN
59+
#define Z_MIN_PROBE_PIN PB7
60+
#endif
5861

5962
//
6063
// Steppers

0 commit comments

Comments
 (0)