mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-02 22:18:28 -04:00
autotest: fix FRSkyPassThroughSensorIDs test
need to clear the read buffers before re-polling sensors - just in case we don't need to!
This commit is contained in:
parent
84440108e3
commit
31ec6f66d9
@ -1715,8 +1715,8 @@ class FRSkySPort(FRSky):
|
|||||||
if not self.connect():
|
if not self.connect():
|
||||||
self.progress("Failed to connect")
|
self.progress("Failed to connect")
|
||||||
return
|
return
|
||||||
self.check_poll()
|
|
||||||
self.do_sport_read()
|
self.do_sport_read()
|
||||||
|
self.check_poll()
|
||||||
|
|
||||||
def do_sport_read(self):
|
def do_sport_read(self):
|
||||||
self.buffer += self.do_read()
|
self.buffer += self.do_read()
|
||||||
|
Loading…
Reference in New Issue
Block a user