Skip to content

Commit 405c2c4

Browse files
committed
s
1 parent 902c22e commit 405c2c4

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

bricks/_common/common.mk

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,12 @@ PY_EXTRA_SRC_C += $(addprefix bricks/_common/,\
305305
)
306306

307307
# --- CUSTOM ODOMETRY ENGINE ROUTING ---
308-
# Only add the math engine. The wrapper (pb_module_experimental.c)
309-
# is already discovered automatically by the build system.
310-
311-
ifneq (,$(findstring prime_hub,$(PBIO_PLATFORM)))
308+
# Precise routing for Spike Prime
309+
ifeq ($(strip $(PBIO_PLATFORM)),prime_hub)
312310
SRC_C += ../../pybricks/experimental/odometry_cortexm4.c
313-
else ifneq (,$(findstring ev3dev,$(PBIO_PLATFORM)))
311+
else ifeq ($(strip $(PBIO_PLATFORM)),ev3dev)
314312
SRC_C += ../../pybricks/experimental/odometry_arm9.c
315313
else
316-
# Fallback for all other hubs
317314
SRC_C += ../../pybricks/experimental/odometry_arm9.c
318315
endif
319316
# Not all MCUs support thumb2 instructions.

0 commit comments

Comments
 (0)