diff --git a/firmware/controllers/algo/rusefi_enums.h b/firmware/controllers/algo/rusefi_enums.h index 228b670104..7abe92c625 100644 --- a/firmware/controllers/algo/rusefi_enums.h +++ b/firmware/controllers/algo/rusefi_enums.h @@ -328,6 +328,7 @@ typedef enum __attribute__ ((__packed__)) { typedef enum __attribute__ ((__packed__)) { BMW_e46 = 0, W202 = 1, + LUA = 2, } can_vss_nbc_e; diff --git a/firmware/controllers/can/can_vss.cpp b/firmware/controllers/can/can_vss.cpp index 498deade6a..3759dcbb37 100644 --- a/firmware/controllers/can/can_vss.cpp +++ b/firmware/controllers/can/can_vss.cpp @@ -23,6 +23,8 @@ expected look_up_can_id(can_vss_nbc_e type) { return 0x01F0; /* BMW e46 ABS Message */ case W202: return 0x0200; /* W202 C180 ABS signal */ + case LUA + return 0; // a bit of a hack default: firmwareError(OBD_Vehicle_Speed_SensorB, "Wrong Can DBC selected: %d", type); return unexpected; diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index 1f79563f8b..1290dd61ad 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -1435,7 +1435,7 @@ tChargeMode_e tChargeMode; pid_s idleRpmPid2 - custom can_vss_nbc_e 1 bits, U08, @OFFSET@, [0:0], "BMW_e46", "W202" + custom can_vss_nbc_e 1 bits, U08, @OFFSET@, [0:1], "BMW_e46", "W202", "Lua" can_vss_nbc_e canVssNbcType;set can_vss X gppwm_channel[GPPWM_CHANNELS iterate] gppwm;