mirror of https://github.com/ArduPilot/ardupilot
Fixed type casting
This commit is contained in:
parent
adf6a2c9c8
commit
892e4a805b
|
@ -99,7 +99,7 @@ function uint16_value(hbyte, lbyte)
|
||||||
end
|
end
|
||||||
|
|
||||||
function read_uart()
|
function read_uart()
|
||||||
local n_avail = uart:available()
|
local n_avail = uart:available():toint()
|
||||||
|
|
||||||
-- Discard up to BUFFER_LEN bytes.
|
-- Discard up to BUFFER_LEN bytes.
|
||||||
-- These are stale data.
|
-- These are stale data.
|
||||||
|
|
Loading…
Reference in New Issue