GitLab will be upgraded on June 23rd evening. During the upgrade the service will be unavailable, sorry for the inconvenience.

Commit 258e41fe authored by bliss administrator's avatar bliss administrator

First tested version

parent fa732039
......@@ -39,7 +39,12 @@ class ForceMeter(SamplingCounterController):
ret = self._cnx.readline()
#print (ret)
value = float(ret[3:10])
try:
value = float(ret[3:10])
# could not read counter value
except ValueError:
ret = self._cnx.readline()
value = float(ret[3:10])
#print (f"force value = {value}")
return value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment