From d08274e31647cde37c2205ee9ec9b609e0b8b204 Mon Sep 17 00:00:00 2001 From: Artem30801 Date: Sat, 8 Dec 2018 15:58:57 +0300 Subject: [PATCH] Syntax fixes --- Drone/Client.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Drone/Client.py b/Drone/Client.py index 54e2077..7fd016d 100755 --- a/Drone/Client.py +++ b/Drone/Client.py @@ -61,13 +61,12 @@ def pl_anim(): global command play_animation.read_animation_file() dtime = time_synch() - time.time() - ok = 0 + t_st = None while True: if 'begin_anim' in command: t_st = int(command[command.index('('):]) - ok=1 - if t_st == dtime+time.time and ok==1: + if t_st == dtime+time.time: break if 'synch' in command: dtime=time_synch() - time.time()