From f26ff29eefc1b58172654f35f6465afbe0208662 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Sat, 15 Oct 2016 11:25:16 +0200 Subject: [PATCH] fix the fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7568b43..4dbd878 100644 --- a/main.py +++ b/main.py @@ -206,7 +206,7 @@ if __name__ == "__main__": with serial.Serial(ser_dev, timeout=1) as s: arduino = s import threading - t = threading.Thread(target=stream, args=[ser_dev]) + t = threading.Thread(target=stream, args=[s]) # classifying as a daemon, so they will die when the main dies