only: Lua VSS broken for no apparent reson? fix #5759
This commit is contained in:
parent
6d05840072
commit
6b3c82e80a
|
@ -330,8 +330,7 @@ typedef enum __attribute__ ((__packed__)) {
|
|||
typedef enum __attribute__ ((__packed__)) {
|
||||
BMW_e46 = 0,
|
||||
W202 = 1,
|
||||
LUA = 2,
|
||||
BMW_e90 = 3,
|
||||
BMW_e90 = 2,
|
||||
} can_vss_nbc_e;
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,8 +25,6 @@ expected<uint16_t> look_up_can_id(can_vss_nbc_e type) {
|
|||
return 0x1A0; // BMW E90 ABS speed frame (not wheel speeds, vehicle speed)
|
||||
case W202:
|
||||
return 0x0200; /* W202 C180 ABS signal */
|
||||
case LUA:
|
||||
return 0; // a bit of a hack to be able to inject VSS using a Lua script
|
||||
default:
|
||||
firmwareError(ObdCode::OBD_Vehicle_Speed_SensorB, "Wrong Can DBC selected: %d", type);
|
||||
return unexpected;
|
||||
|
|
|
@ -1403,7 +1403,7 @@ tChargeMode_e tChargeMode;
|
|||
pid_s idleRpmPid2
|
||||
|
||||
|
||||
custom can_vss_nbc_e 2 bits, U08, @OFFSET@, [0:1], "BMW_e46", "W202", "Lua", "BMW E8x/E9x MK60e5"
|
||||
custom can_vss_nbc_e 2 bits, U08, @OFFSET@, [0:1], "BMW_e46", "W202", "BMW E8x/E9x MK60e5"
|
||||
can_vss_nbc_e canVssNbcType
|
||||
|
||||
gppwm_channel[GPPWM_CHANNELS iterate] gppwm;
|
||||
|
|
Loading…
Reference in New Issue