Updated Lua Scripting (markdown)
This commit is contained in:
parent
e24f67306c
commit
4b28903356
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue