From 9f3106db395299ab2ca5b2c195bf3bb37ddea26c Mon Sep 17 00:00:00 2001 From: rusefi Date: Sun, 5 Jul 2020 13:34:51 -0400 Subject: [PATCH] refactoring --- firmware/controllers/algo/engine_configuration.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 6a4a2e78e6..620b81e322 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -173,7 +173,7 @@ static void wipeString(char *string, int size) { } } -void onBurnRequest(DECLARE_ENGINE_PARAMETER_SIGNATURE) { +void wipeStrings(DECLARE_ENGINE_PARAMETER_SIGNATURE) { wipeString(engineConfiguration->engineMake, sizeof(vehicle_info_t)); wipeString(engineConfiguration->engineCode, sizeof(vehicle_info_t)); wipeString(engineConfiguration->vehicleName, sizeof(vehicle_info_t)); @@ -181,6 +181,10 @@ void onBurnRequest(DECLARE_ENGINE_PARAMETER_SIGNATURE) { for (int i = 0; i < FSIO_COMMAND_COUNT; i++) { wipeString(config->fsioFormulas[i], sizeof(le_formula_t)); } +} + +void onBurnRequest(DECLARE_ENGINE_PARAMETER_SIGNATURE) { + wipeStrings(PASS_ENGINE_PARAMETER_SIGNATURE); incrementGlobalConfigurationVersion(PASS_ENGINE_PARAMETER_SIGNATURE); }