Skip to content

Commit 6f5ad55

Browse files
cbagwellthinkyhead
authored andcommitted
⚡️ More SCURVE cycles on unoptimized cortex-m0 (MarlinFirmware#24955)
1 parent 57f6c93 commit 6f5ad55

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Marlin/src/module/stepper.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,11 @@
8787

8888
// S curve interpolation adds 40 cycles
8989
#if ENABLED(S_CURVE_ACCELERATION)
90-
#define ISR_S_CURVE_CYCLES 40UL
90+
#ifdef STM32G0B1xx
91+
#define ISR_S_CURVE_CYCLES 500UL
92+
#else
93+
#define ISR_S_CURVE_CYCLES 40UL
94+
#endif
9195
#else
9296
#define ISR_S_CURVE_CYCLES 0UL
9397
#endif

0 commit comments

Comments
 (0)