summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glucometerutils/drivers/otultra2.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/glucometerutils/drivers/otultra2.py b/glucometerutils/drivers/otultra2.py
index 8f21ac2..f44450a 100644
--- a/glucometerutils/drivers/otultra2.py
+++ b/glucometerutils/drivers/otultra2.py
@@ -130,8 +130,7 @@ class Device(object):
timeout=1, xonxoff=False, rtscts=False, dsrdtr=False, writeTimeout=None)
def connect(self):
- self.serial_.write(b'\x11\r')
- self.serial_.flush()
+ return
def disconnect(self):
return
@@ -142,7 +141,7 @@ class Device(object):
Args:
cmd: command and parameters to send (without newline)
"""
- cmdstring = bytes(cmd + '\r', 'ascii')
+ cmdstring = bytes('\x11\r' + cmd + '\r', 'ascii')
self.serial_.write(cmdstring)
self.serial_.flush()