From 905b7f587c1dff9b22d89fdbaac97ff3c493354a Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 9 Feb 2022 19:49:41 -0500 Subject: [PATCH] better default DEFAULT_ENGINE_TYPE --- firmware/config/boards/f407-discovery/board.mk | 2 ++ firmware/controllers/algo/engine_configuration.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/config/boards/f407-discovery/board.mk b/firmware/config/boards/f407-discovery/board.mk index 8c44c25bf6..45b0a4de23 100644 --- a/firmware/config/boards/f407-discovery/board.mk +++ b/firmware/config/boards/f407-discovery/board.mk @@ -6,6 +6,8 @@ DDEFS += -DSTM32F407xx # We are running on Frankenso hardware! DDEFS += -DHW_FRANKENSO=1 +DDEFS += -DDEFAULT_ENGINE_TYPE=DEFAULT_FRANKENSO + DDEFS += -DSTM32_I2C_USE_I2C3=TRUE ifndef IS_RE_BOOTLOADER diff --git a/firmware/controllers/algo/engine_configuration.h b/firmware/controllers/algo/engine_configuration.h index 806b6d3e04..26b8c63cac 100644 --- a/firmware/controllers/algo/engine_configuration.h +++ b/firmware/controllers/algo/engine_configuration.h @@ -11,7 +11,7 @@ #include "persistent_configuration.h" #ifndef DEFAULT_ENGINE_TYPE -#define DEFAULT_ENGINE_TYPE DEFAULT_FRANKENSO +#define DEFAULT_ENGINE_TYPE MINIMAL_PINS #endif #define CLT_MANUAL_IDLE_CORRECTION config->cltIdleCorrBins, config->cltIdleCorr, CLT_CURVE_SIZE