diff --git a/client/pyscripts/theremin.py b/client/pyscripts/theremin.py index 2bd1681ac..a286d6193 100755 --- a/client/pyscripts/theremin.py +++ b/client/pyscripts/theremin.py @@ -53,6 +53,8 @@ while True: if(select([pm3_proc.stdout], [], [], 0)[0]): b = pm3_proc.stdout.read(256).decode("ascii") + if "Done" in b: + break; for c in b: if c in "0123456789 mV": mv_recbuf += c