mirror of
https://github.com/damiafuentes/DJITelloPy.git
synced 2024-10-25 03:27:46 +03:00
🐛 invalidate background_frame_read when calling streamoff
This commit is contained in:
@@ -601,6 +601,10 @@ class Tello:
|
||||
self.send_control_command("streamoff")
|
||||
self.stream_on = False
|
||||
|
||||
if self.background_frame_read is not None:
|
||||
self.background_frame_read.stop()
|
||||
self.background_frame_read = None
|
||||
|
||||
def emergency(self):
|
||||
"""Stop all motors immediately.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user