diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 93735a7cf8..763ed87d6c 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -1106,13 +1106,13 @@ void commonFrankensoAnalogInputs() { // These symbols are weak so that a board_configuration.cpp file can override them BOARD_WEAK void setBoardDefaultConfiguration() { } // specific firmware builds are meant for specific hardware. In order to provide best user experience on well-known boards sometimes we reduce user flexibility. -BOARD_WEAK void setBoardConfigOverrides() { } +BOARD_WEAK_SOMETHING_WEIRD void setBoardConfigOverrides() { } BOARD_WEAK int hackHellenBoardId(int detectedId) { return detectedId; } BOARD_WEAK void onBoardStandBy() { } -BOARD_WEAK int getBoardMetaOutputsCount() { return 0; } +BOARD_WEAK_SOMETHING_WEIRD int getBoardMetaOutputsCount() { return 0; } // default implementation: treat all outputs as low side BOARD_WEAK int getBoardMetaLowSideOutputsCount() { return getBoardMetaOutputsCount(); } BOARD_WEAK Gpio* getBoardMetaOutputs() { return nullptr; } diff --git a/firmware/controllers/algo/engine_configuration.h b/firmware/controllers/algo/engine_configuration.h index 23a7a1c2a7..c5be66b4f2 100644 --- a/firmware/controllers/algo/engine_configuration.h +++ b/firmware/controllers/algo/engine_configuration.h @@ -23,11 +23,14 @@ #if !defined(EFI_SIM_IS_WINDOWS) || !EFI_SIM_IS_WINDOWS // todo: dup of PUBLIC_API_WEAK? -#define BOARD_WEAK __attribute__((weak)) +#define BOARD_WEAK_SOMETHING_WEIRD __attribute__((weak)) #else -#define BOARD_WEAK +#define BOARD_WEAK_SOMETHING_WEIRD #endif +// todo: dup of PUBLIC_API_WEAK? +#define BOARD_WEAK __attribute__((weak)) + void setCrankOperationMode(); void setCamOperationMode(); void setTwoStrokeOperationMode();