mirror of https://github.com/ArduPilot/ardupilot
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():
|
||||
self.progress("Failed to connect")
|
||||
return
|
||||
self.check_poll()
|
||||
self.do_sport_read()
|
||||
self.check_poll()
|
||||
|
||||
def do_sport_read(self):
|
||||
self.buffer += self.do_read()
|
||||
|
|
Loading…
Reference in New Issue