diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2011-11-23 21:24:09 +0100 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2011-11-23 21:24:09 +0100 |
commit | 677449b520088413afd0ce9e443a68cb87fa3236 (patch) | |
tree | 91306d9d38dcd5703d98c65aca823a3d2f0a04b9 | |
parent | 1f0362edfbcc12cd2477400b2726b2c6ea739175 (diff) | |
download | PyPhytron-677449b520088413afd0ce9e443a68cb87fa3236.tar.gz PyPhytron-677449b520088413afd0ce9e443a68cb87fa3236.tar.bz2 |
retry_count variable initialisation and increment _was_ missing.
-rw-r--r-- | Phytron.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -311,11 +311,13 @@ class IPCOMM: self.conn.flushInput() self.send( ('%X' % ID) + cmd ) + retry_count = 0 while not recv_data and retry_count < self.max_retry_count: try: recv_data = self.recv() except ReceiveChecksumError: self.send( ('%X' % ID) + 'R') + retry_count += 1 if recv_data.status.rx_error: extended_status = self.queryextendedstatus(ID).data |