engine_type_e 16 bits should do it

This commit is contained in:
rusefillc 2023-08-21 19:04:29 -04:00
parent fc51615238
commit 2cfd8e1be9
3 changed files with 7 additions and 2 deletions

View File

@ -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,

View File

@ -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
}

View File

@ -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