Skip to content

Lua & Can Transmit #4

Open
Open

Description

@NMSTEC

Not included info in RusEFI lua wiki:

In order to transmit data, the array must be fully initialized first.

This works:

txPayload = {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
  txPayload[3] = clt
  txPayload[8] = fll * 0.5

  txCan(1, 0x203, 1, txPayload)

This doesn't and is shown in wiki examples: https://wiki.rusefi.com/Lua-Scripting/#can-transmit

txPayload = {}
  txPayload[3] = clt
  txPayload[8] = fll * 0.5

  txCan(1, 0x203, 1, txPayload)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions