🩹 Fix __ARM_ARCH check to omit M0+ (#28162)

This commit is contained in:
ellensp 2025-11-09 12:03:05 +13:00 committed by GitHub
parent 412513be43
commit e53f2a3d82
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1424,7 +1424,7 @@ void Stepper::apply_directions() {
}
FORCE_INLINE int32_t Stepper::_eval_bezier_curve(const uint32_t curr_step) {
#if (defined(__arm__) || defined(__thumb__)) && __ARM_ARCH >= 6 && !defined(STM32G0B1xx) // TODO: Test define STM32G0xx versus STM32G0B1xx
#if (defined(__arm__) || defined(__thumb__)) && __ARM_ARCH >= 7 && !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
uint32_t flo = 0;