mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Scripting: fixup serial_test.lua
This commit is contained in:
parent
e1e16bde6d
commit
6557f3c258
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user