From 265339a50bec66e3ed859f337ea06a003d6e17e0 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 25 Jun 2021 12:26:29 -0400 Subject: [PATCH] helping build? --- firmware/controllers/settings.cpp | 85 +++++++++++++++---------------- 1 file changed, 42 insertions(+), 43 deletions(-) diff --git a/firmware/controllers/settings.cpp b/firmware/controllers/settings.cpp index c78ed45e0d..681c2551f7 100644 --- a/firmware/controllers/settings.cpp +++ b/firmware/controllers/settings.cpp @@ -103,49 +103,6 @@ static void printOutputs(const engine_configuration_s *engineConfiguration) { hwPortname(engineConfiguration->alternatorControlPin)); } - -/** - * These should be not very long because these are displayed on the LCD as is - */ -const char* getConfigurationName(engine_type_e engineType) { - switch (engineType) { - case DEFAULT_FRANKENSO: - return "DEFAULT_FRANKENSO"; - case DODGE_NEON_1995: - return "Neon95"; - case FORD_ASPIRE_1996: - return "Aspire"; - case NISSAN_PRIMERA: - return "Primera"; - case HONDA_ACCORD_CD: - return "Accord3"; - case HONDA_ACCORD_CD_TWO_WIRES: - return "Accord2"; - case HONDA_ACCORD_1_24_SHIFTED: - return "Accord24sh"; - case HONDA_ACCORD_CD_DIP: - return "HondaD"; - case FORD_INLINE_6_1995: - return "Fordi6"; - case GY6_139QMB: - return "Gy6139"; - case MAZDA_MIATA_NB1: - return "MiataNB1"; - case FORD_ESCORT_GT: - return "EscrtGT"; - case CITROEN_TU3JP: - return "TU3JP"; - case MITSU_4G93: - return "Mi4G93"; - case MIATA_1990: - return "MX590"; - case MIATA_1996: - return "MX596"; - default: - return getEngine_type_e(engineType); - } -} - /** * @brief Prints current engine configuration to human-readable console. */ @@ -1374,3 +1331,45 @@ void initSettings(void) { } #endif /* !EFI_UNIT_TEST */ + +/** + * These should be not very long because these are displayed on the LCD as is + */ +const char* getConfigurationName(engine_type_e engineType) { + switch (engineType) { + case DEFAULT_FRANKENSO: + return "DEFAULT_FRANKENSO"; + case DODGE_NEON_1995: + return "Neon95"; + case FORD_ASPIRE_1996: + return "Aspire"; + case NISSAN_PRIMERA: + return "Primera"; + case HONDA_ACCORD_CD: + return "Accord3"; + case HONDA_ACCORD_CD_TWO_WIRES: + return "Accord2"; + case HONDA_ACCORD_1_24_SHIFTED: + return "Accord24sh"; + case HONDA_ACCORD_CD_DIP: + return "HondaD"; + case FORD_INLINE_6_1995: + return "Fordi6"; + case GY6_139QMB: + return "Gy6139"; + case MAZDA_MIATA_NB1: + return "MiataNB1"; + case FORD_ESCORT_GT: + return "EscrtGT"; + case CITROEN_TU3JP: + return "TU3JP"; + case MITSU_4G93: + return "Mi4G93"; + case MIATA_1990: + return "MX590"; + case MIATA_1996: + return "MX596"; + default: + return getEngine_type_e(engineType); + } +}