diff --git a/firmware/config/engines/vw_b6.cpp b/firmware/config/engines/vw_b6.cpp index 1a046b828a..17dce873d6 100644 --- a/firmware/config/engines/vw_b6.cpp +++ b/firmware/config/engines/vw_b6.cpp @@ -181,8 +181,7 @@ shallSleep = Timer.new() hadIgnitionEvent = false function onCanRx(bus, id, dlc, data) - id11 = id % 2048 - if id11 == AIRBAG then + if id == AIRBAG then -- looks like we have ignition key do not sleep! shallSleep : reset() hadIgnitionEvent = true diff --git a/firmware/controllers/lua/examples/bmw-idrive.txt b/firmware/controllers/lua/examples/bmw-idrive.txt index 2cb75da301..6d2b7d9a78 100644 --- a/firmware/controllers/lua/examples/bmw-idrive.txt +++ b/firmware/controllers/lua/examples/bmw-idrive.txt @@ -12,7 +12,6 @@ canRxAdd(CAN_BUTTONS) -- buttons setTickRate(5) -- set tick rate to 5hz function onCanRx(bus, id, dlc, data) - id = id % 2048 -- print('got CAN id=' ..id ..' dlc=' ..dlc) if id == CAN_BUTTONS then