FOME-Tech / FOME-Tech/wiki

Lua & Can Transmit

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
12
Forks
15
Avg merge
4h 32m
Merged PRs (30d)
10

Description

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)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.