diff --git a/firmware/config/engines/mazda_miata.cpp b/firmware/config/engines/mazda_miata.cpp index b2b3f18fe5..3d67860741 100644 --- a/firmware/config/engines/mazda_miata.cpp +++ b/firmware/config/engines/mazda_miata.cpp @@ -141,42 +141,10 @@ void common079721_2351(DECLARE_CONFIG_PARAMETER_SIGNATURE) { } -/** - * Frankenstein board - */ -void setMiata1990(DECLARE_CONFIG_PARAMETER_SIGNATURE) { - common079721_2351(PASS_CONFIG_PARAMETER_SIGNATURE); - - commonMiataNa(PASS_CONFIG_PARAMETER_SIGNATURE); - - // Frankenstein: low side - out #1: PC14 - // Frankenstein: low side - out #2: PC15 - // Frankenstein: low side - out #3: PE6 - // Frankenstein: low side - out #4: PC13 - // Frankenstein: low side - out #5: PE4 - // Frankenstein: low side - out #6: PE5 - // Frankenstein: low side - out #7: PE2 - // Frankenstein: low side - out #8: PE3 - // Frankenstein: low side - out #9: PE0 - // Frankenstein: low side - out #10: PE1 - // Frankenstein: low side - out #11: PB8 - // Frankenstein: low side - out #12: PB9 - - engineConfiguration->injectionPins[0] = GPIOB_9; // Frankenstein: low side - out #12 - engineConfiguration->injectionPins[1] = GPIOB_8; // Frankenstein: low side - out #11 - engineConfiguration->injectionPins[2] = GPIO_UNASSIGNED; - engineConfiguration->injectionPins[3] = GPIO_UNASSIGNED; - engineConfiguration->injectionPins[4] = GPIO_UNASSIGNED; - engineConfiguration->injectionPins[5] = GPIO_UNASSIGNED; - engineConfiguration->injectionPinMode = OM_DEFAULT; - -// todo: idleValvePin -} - /** * Tom tomiata, Frankenstein board */ -void setMiata1996(DECLARE_CONFIG_PARAMETER_SIGNATURE) { +void setFrankensteinMiata1996(DECLARE_CONFIG_PARAMETER_SIGNATURE) { commonMiataNa(PASS_CONFIG_PARAMETER_SIGNATURE); engineConfiguration->specs.displacement = 1.839; diff --git a/firmware/config/engines/mazda_miata.h b/firmware/config/engines/mazda_miata.h index 754144c310..ab5bfbe1b3 100644 --- a/firmware/config/engines/mazda_miata.h +++ b/firmware/config/engines/mazda_miata.h @@ -14,5 +14,4 @@ #include "engine_configuration.h" void common079721_2351(DECLARE_CONFIG_PARAMETER_SIGNATURE); -void setMiata1990(DECLARE_CONFIG_PARAMETER_SIGNATURE); -void setMiata1996(DECLARE_CONFIG_PARAMETER_SIGNATURE); +void setFrankensteinMiata1996(DECLARE_CONFIG_PARAMETER_SIGNATURE); diff --git a/firmware/controllers/algo/engine_configuration.cpp b/firmware/controllers/algo/engine_configuration.cpp index 026803919a..fca9bdd0f2 100644 --- a/firmware/controllers/algo/engine_configuration.cpp +++ b/firmware/controllers/algo/engine_configuration.cpp @@ -1090,10 +1090,8 @@ void resetConfigurationExt(configuration_callback_t boardCallback, engine_type_e setFordEscortGt(PASS_CONFIG_PARAMETER_SIGNATURE); break; case MIATA_1990: - setMiata1990(PASS_CONFIG_PARAMETER_SIGNATURE); - break; case MIATA_1996: - setMiata1996(PASS_CONFIG_PARAMETER_SIGNATURE); + setFrankensteinMiata1996(PASS_CONFIG_PARAMETER_SIGNATURE); break; case CITROEN_TU3JP: setCitroenBerlingoTU3JPConfiguration(PASS_CONFIG_PARAMETER_SIGNATURE);