From 94c642bfe464ba72df4c5cf6d45b90242a14426f Mon Sep 17 00:00:00 2001 From: leozone0103 <55825599+leozone0103@users.noreply.github.com> Date: Tue, 7 Jun 2022 14:53:35 -0700 Subject: [PATCH] Update read_arduino.pyw --- read_arduino.pyw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/read_arduino.pyw b/read_arduino.pyw index 0bfc7c9..a318b39 100644 --- a/read_arduino.pyw +++ b/read_arduino.pyw @@ -8,7 +8,7 @@ import numpy as np # constant settings SENSORS_MAX = 4 # maximum sensor ports -baud = 9600 +baud = 19200 settings = json.load(open('settings.json', 'r')) resolution = settings["resolution"] @@ -23,7 +23,7 @@ if "- No Device -" in port: print("this should generate random values base on # sensors given") exit(0) else: - controller = serial.Serial(port) + controller = serial.Serial(port, baudrate=baud) if np.any(sensor_ports >= SENSORS_MAX): raise ValueError("Port range is 0-3!")