aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Phytron.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Phytron.py b/Phytron.py
index 79a7942..7ea0d28 100644
--- a/Phytron.py
+++ b/Phytron.py
@@ -307,7 +307,7 @@ class IPCOMM:
recv_data = None
- with rlock:
+ with self.rlock:
self.conn.flushInput()
self.send( ('%X' % ID) + cmd )
@@ -360,7 +360,7 @@ class IPCOMM:
"""
recv_data = None
- with rlock:
+ with self.rlock:
self.conn.flushInput()
self.send( ('%X' % ID) + 'IS?' )