Navigation Menu

Skip to content

Commit

Permalink
try to make insulaudit's protocol exerciser more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Guest West committed Dec 25, 2012
1 parent deb765f commit 1a62b34
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Binary file modified megalog
Binary file not shown.
17 changes: 11 additions & 6 deletions src/insulaudit/devices/clmm/proto.py
Expand Up @@ -422,16 +422,21 @@ def getNumBytesAvailable(self):
return result

def readStatus(self):
result = False
result = [ ]
def fetch_status( ):
res = self.link.sendComLink2Command(3)
status = res and res[0] # 0 indicates success
if status == 0:
result = res
return True
#status = res and res[0] # 0 indicates success
log.info("res: %r" % res)
if res and res[0] == 0: # 0 indicates success
return res
#if status == 0:
#result = res
#return True
return False

if not retry(fetch_status) or len(result) == 0:
#if not retry(fetch_status) or len(result) == 0:
result = retry(fetch_status)
if not result:
raise RFFailed("rf read header indicates failure")
"""
"""
Expand Down

0 comments on commit 1a62b34

Please sign in to comment.