diff --git a/Lua-Scripting.md b/Lua-Scripting.md index f24f9d8e..6d22e3a6 100644 --- a/Lua-Scripting.md +++ b/Lua-Scripting.md @@ -142,8 +142,8 @@ use enableCanTx(false) to suppress CAN TX - Parameters - id: CAN ID to listen to. - - mask: Apply a mask to the received ID before comparing to the `id` parameter. For example, passing an id of `3` and mask of 0xFF will match any frame whose last 8 bits match `3`. If ommitted, no masking is applied before comparison, so only a single CAN ID will be received. Use the mask to subscribe to multiple messages with similar IDs with a single call to `canRxAddMask`. - - bus: Hardware CAN bus index, only '1' on myst rusEFI boards, '1' or '2' on Proteus. If this parameter is omitted, messages will be received from any bus. + - mask: Apply a mask to the received ID before comparing to the `id` parameter. For example, passing an id of `3` and mask of 0xFF will match any frame whose last 8 bits match `3`. If omitted, no masking is applied before comparison, so only a single CAN ID will be received. Use the mask to subscribe to multiple messages with similar IDs with a single call to `canRxAddMask`. + - bus: Hardware CAN bus index, only '1' on must rusEFI boards, '1' or '2' on Proteus. If this parameter is omitted, messages will be received from any bus. - callback: A the callback function to call when the specified ID is received. If this parameter is not passed, the default function `onCanRx` will be used. Your CAN RX callback should look like this: