summaryrefslogtreecommitdiffstats
path: root/libtoprammer/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'libtoprammer/main.py')
-rw-r--r--libtoprammer/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtoprammer/main.py b/libtoprammer/main.py
index 965dbd3..bff19f1 100644
--- a/libtoprammer/main.py
+++ b/libtoprammer/main.py
@@ -200,12 +200,12 @@ class TOP(object):
)
# This is the first hardware access. Try several times since the programmer is in an unknown state.
- for _ in range(25):
+ for _ in range(5):
try:
versionString = self.hw.readVersionString()
break
except TOPException, e:
- pass
+ time.sleep(0.05)
else:
raise TOPException("Could not read version string from hardware")
for (regex, t) in versionRegex:
bues.ch cgit interface