File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
315313else
316- # Fallback for all other hubs
317314 SRC_C += ../../pybricks/experimental/odometry_arm9.c
318315endif
319316# Not all MCUs support thumb2 instructions.
You can’t perform that action at this time.
0 commit comments