aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2011-11-23 21:20:06 +0100
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2011-11-23 21:20:06 +0100
commit1f0362edfbcc12cd2477400b2726b2c6ea739175 (patch)
tree3d79d6d9080e2840c5ae0534e9e9070c7d5a2774
parent93f694779aa263a40eb7b09443972d4783c0b8b3 (diff)
downloadPyPhytron-1f0362edfbcc12cd2477400b2726b2c6ea739175.tar.gz
PyPhytron-1f0362edfbcc12cd2477400b2726b2c6ea739175.tar.bz2
rlock scoping fixed
-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?' )