theremin.py: quit when pm3 button is pressed

This commit is contained in:
Philippe Teuwen 2020-06-10 01:18:26 +02:00
parent b55c186b3a
commit 2a29a1431d

View file

@ -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