autosportlabs / RaceCapture-Pro_firmware

Firmware for RaceCapture-Pro Data Acquisition, control and Telemetry system for motorsports
GNU General Public License v3.0
66 stars 35 forks source link

in lua, user defined channels should be 1 based #1094

Closed RodADavison closed 4 years ago

RodADavison commented 4 years ago

this script should detect and produce an error:

a=addChannel("a", 50 ) setChannel(b,10)

instead it happily sets channel "a" to 10.
Since we can't change lua's init to zero behaviour, we should avoid 0 as a valid channel Id.