From acc05a408095636a734f3efb18a871601e81484b Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Sun, 21 Aug 2022 23:14:46 -0400 Subject: [PATCH] Updated Lua Scripting (markdown) --- Lua-Scripting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: