diff --git a/Lua-Scripting.md b/Lua-Scripting.md index 6166710a..22edd6f0 100644 --- a/Lua-Scripting.md +++ b/Lua-Scripting.md @@ -432,9 +432,9 @@ function onTick() voltage0 = getSensor("aux0") txPayload = {} - // first byte: integer part, would be autoboxed to int + // first byte: integer part, would be converted to int txPayload[1] = voltage0 - // second byte: fractional part, would be autoboxed to int, overflow would be ignored + // second byte: fractional part, would be converted to int, overflow would be ignored txPayload[2] = voltage0 * 256; txCan(1, 0x600, 1, txPayload)