diff --git a/firmware/controllers/algo/engine_types.h b/firmware/controllers/algo/engine_types.h index de7608f8de..bc96f71330 100644 --- a/firmware/controllers/algo/engine_types.h +++ b/firmware/controllers/algo/engine_types.h @@ -16,7 +16,7 @@ /** * https://github.com/rusefi/rusefi/wiki/Engine-Types */ -enum class engine_type_e : uint32_t { +enum class engine_type_e : uint16_t { DEFAULT_FRANKENSO = 0, MIATA_PROTEUS_TCU = 1, diff --git a/firmware/controllers/can/can_bench_test.cpp b/firmware/controllers/can/can_bench_test.cpp index 03e65458b6..ad69891fd1 100644 --- a/firmware/controllers/can/can_bench_test.cpp +++ b/firmware/controllers/can/can_bench_test.cpp @@ -88,6 +88,9 @@ void sendBoardStatus() { msg[2] = TRUNCATE_TO_BYTE(numSecondsSinceReset >> 16); msg[3] = TRUNCATE_TO_BYTE(numSecondsSinceReset >> 8); msg[4] = TRUNCATE_TO_BYTE(numSecondsSinceReset); + + msg[5] = engineConfiguration->engineType >> 8; + msg[6] = engineConfiguration->engineType #endif // EFI_PROD_CODE } diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index f54923942e..ac442fc5b7 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -395,9 +395,11 @@ struct ThermistorConf adc_channel_e adcChannel; end_struct -custom engine_type_e 4 bits, S32, @OFFSET@, [0:6], @@engine_type_e_auto_enum@@ +custom engine_type_e 2 bits, U16, @OFFSET@, [0:6], @@engine_type_e_auto_enum@@ engine_type_e engineType;http://rusefi.com/wiki/index.php?title=Manual:Engine_Type\nset engine_type X +uint16_t unusedEnType + uint16_t sensorSnifferRpmThreshold;Disable sensor sniffer above this rpm;"RPM", 1, 0, 0, 10000, 0 uint16_t launchRpm;A secondary Rev limit engaged by the driver to help launch the vehicle faster;"rpm", 1, 0, 0, 20000, 0 uint16_t rpmHardLimit;set rpm_hard_limit X;"rpm", 1, 0, 0, 20000, 0