From cedc5f4e9c67a09366cf255458179346c1f1781b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Tue, 23 Nov 2021 15:41:31 -0500 Subject: [PATCH] LUA CANbus expect 29bit ID by default #3592 not great quick fix --- firmware/controllers/lua/lua_can_rx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/controllers/lua/lua_can_rx.cpp b/firmware/controllers/lua/lua_can_rx.cpp index 5f7677be4f..20c6e3bc5d 100644 --- a/firmware/controllers/lua/lua_can_rx.cpp +++ b/firmware/controllers/lua/lua_can_rx.cpp @@ -12,7 +12,8 @@ int32_t luaCanRxIds[maxFilterCount] = {0}; static bool shouldRxCanFrame(const CANRxFrame& frame) { for (size_t i = 0; i < filterCount; i++) { - if (CAN_EID(frame) == luaCanRxIds[i]) { + int32_t id = luaCanRxIds[i]; + if (CAN_SID(frame) == id || CAN_EID(frame) == id) { return true; } }