From e37108c92009e9db21862f8fa102bed0fa4cfc7b Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Tue, 23 Feb 2021 13:52:57 -0500 Subject: [PATCH] Wait for connack before doing anything else. --- tellopy/_internal/tello.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tellopy/_internal/tello.py b/tellopy/_internal/tello.py index c557d275..db400850 100755 --- a/tellopy/_internal/tello.py +++ b/tellopy/_internal/tello.py @@ -136,6 +136,7 @@ def get_video_stream(self): def connect(self): """Connect is used to send the initial connection request to the drone.""" self.__publish(event=self.__EVENT_CONN_REQ) + self.wait_for_connection(10.0) def wait_for_connection(self, timeout=None): """Wait_for_connection will block until the connection is established."""