diff --git a/stitch_project/api/Stitch/Stitch.py b/stitch_project/api/Stitch/Stitch.py index a026b5b2fb12d2d25ca113ade9d12747aa7f69e8..30601e2308096739cb88a3de43710956b962719e 100644 --- a/stitch_project/api/Stitch/Stitch.py +++ b/stitch_project/api/Stitch/Stitch.py @@ -37,7 +37,7 @@ class Stitch: self.baudRate = baudRate self.numFreqs = 1023 if self.alwaysOpen: - self.serialHandle = serial.Serial(self.serialPort, self.baudRate, bytesize=8, stopbits=1, timeout=1) + self.serialHandle = serial.Serial(self.serialPort, self.baudRate, bytesize=8, stopbits=1, timeout=10) #public interface starts here def setFrequencies(self, dphis): @@ -86,7 +86,7 @@ class Stitch: self._sendArray(arr) #now read until timeout if not self.alwaysOpen: - self.serialHandle = serial.Serial(self.serialPort, self.baudRate, bytesize=8, stopbits=1, timeout=5) + self.serialHandle = serial.Serial(self.serialPort, self.baudRate, bytesize=8, stopbits=1, timeout=10) data = self.serialHandle.read(20*self.numFreqs) if not self.alwaysOpen: self.close()