AP_Scripting: fixup serial_test.lua

This commit is contained in:
craigy72 2020-07-01 22:04:37 +01:00 committed by Randy Mackay
parent e1e16bde6d
commit 6557f3c258

View File

@ -1,3 +1,5 @@
-- Lua script to write and read from a serial
local port = serial:find_serial(0)
port:begin(115200)
@ -15,8 +17,8 @@ function spit ()
else
step = step + 1
end
return spit, 1000
port:write(step)
return spit, 1000
end
return spit, 1000