Merge remote-tracking branch 'technical-git/master'
This commit is contained in:
commit
fda5703110
|
@ -432,9 +432,9 @@ function onTick()
|
||||||
voltage0 = getSensor("aux0")
|
voltage0 = getSensor("aux0")
|
||||||
|
|
||||||
txPayload = {}
|
txPayload = {}
|
||||||
// first byte: integer part, would be autoboxed to int
|
// first byte: integer part, would be converted to int
|
||||||
txPayload[1] = voltage0
|
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;
|
txPayload[2] = voltage0 * 256;
|
||||||
|
|
||||||
txCan(1, 0x600, 1, txPayload)
|
txCan(1, 0x600, 1, txPayload)
|
||||||
|
|
Loading…
Reference in New Issue