diff --git a/firmware/controllers/algo/auto_generated_commonenum.cpp b/firmware/controllers/algo/auto_generated_commonenum.cpp index 7d45f3a66f..e97728efdd 100644 --- a/firmware/controllers/algo/auto_generated_commonenum.cpp +++ b/firmware/controllers/algo/auto_generated_commonenum.cpp @@ -1,6 +1,6 @@ #include "global.h" #include "rusefi_enums.h" -// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Thu Oct 28 10:22:55 EDT 2021 +// was generated automatically by rusEFI tool from rusefi_enums.h // by enum2string.jar tool on Thu Oct 28 15:52:40 EDT 2021 // see also gen_config_and_enums.bat @@ -670,8 +670,6 @@ const char *getVvt_mode_e(vvt_mode_e value){ switch(value) { case VVT_2JZ: return "VVT_2JZ"; -case VVT_4_1: - return "VVT_4_1"; case VVT_BARRA_3_PLUS_1: return "VVT_BARRA_3_PLUS_1"; case VVT_BOSCH_QUICK_START: @@ -690,6 +688,8 @@ case VVT_NISSAN_VQ: return "VVT_NISSAN_VQ"; case VVT_SECOND_HALF: return "VVT_SECOND_HALF"; +case VVT_TOYOTA_4_1: + return "VVT_TOYOTA_4_1"; } return NULL; } diff --git a/firmware/controllers/algo/engine.cpp b/firmware/controllers/algo/engine.cpp index 7e62eb6965..a23eb785ba 100644 --- a/firmware/controllers/algo/engine.cpp +++ b/firmware/controllers/algo/engine.cpp @@ -83,12 +83,11 @@ trigger_type_e getVvtTriggerType(vvt_mode_e vvtMode) { return TT_VVT_MIATA_NB2; case VVT_BOSCH_QUICK_START: return TT_VVT_BOSCH_QUICK_START; + case VVT_HONDA_K: + case VVT_TOYOTA_4_1: case VVT_FIRST_HALF: - return TT_ONE; case VVT_SECOND_HALF: return TT_ONE; - case VVT_4_1: - return TT_ONE; case VVT_FORD_ST170: return TT_FORD_ST170; case VVT_BARRA_3_PLUS_1: diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 31797a09e6..8ceef68b50 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -91,8 +91,10 @@ typedef enum __attribute__ ((__packed__)) { /** * 1.8l Toyota 1ZZ-FE https://rusefi.com/forum/viewtopic.php?f=3&t=1735 + * 4 minus one + * looks abandoned and unfinished? */ - VVT_4_1 = 6, + VVT_TOYOTA_4_1 = 6, VVT_FORD_ST170 = 7, @@ -100,6 +102,9 @@ typedef enum __attribute__ ((__packed__)) { VVT_NISSAN_VQ = 9, + /** + * 4 plus one + */ VVT_HONDA_K = 10, } vvt_mode_e;