diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 039219c014..2e7a4005e4 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -161,6 +161,12 @@ void onBurnRequest() { incrementGlobalConfigurationVersion("burn"); } +/** + * this hook is about https://github.com/rusefi/rusefi/wiki/Custom-Firmware and https://github.com/rusefi/rusefi/wiki/Canned-Tune-Process + * + */ +__attribute__((weak)) void boardTuneDefaults() { } + // Weak link a stub so that every board doesn't have to implement this function __attribute__((weak)) void boardOnConfigurationChange(engine_configuration_s* /*previousConfiguration*/) { } @@ -682,6 +688,11 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e */ setDefaultEngineConfiguration(); + /** + * custom board engine defaults. Yes, this overlaps with (older) engine_type_e approach. + */ + boardTuneDefaults(); + // set initial pin groups setDefaultBasePins();