Updated Lua Scripting (markdown)

This commit is contained in:
rusefillc 2022-02-08 15:46:29 -05:00
parent e24f67306c
commit 4b28903356
1 changed files with 9 additions and 5 deletions

View File

@ -352,11 +352,15 @@ end
canRxAdd(0x500)
canRxAdd(0x570)
function onCanRx(bus, id, dlc, data)
print('got CAN id=' .. id .. ' dlc=' .. dlc)
id11 = id % 2048
if id11 == 0x500 then --Check can state of BCM
canState = data[1]
end
print('got CAN id=' ..id ..' dlc=' ..dlc)
id11 = id % 2048
if id11 == 0x500 then
-- Check can state of BCM
canState = data[1]
end
if id11 == 0x570 then
mcu_standby()
end
end
```