Closed elmjag closed 7 months ago
The taurus Quantity(0.0) value evaluates to false. Thus when motor's limit is set to exactly 0.0 the code:
if minval: <save limit>
will not run the if-body. Check explicitly for None values of minval and maxval variables to avoid this problem.
Fine with me. Indeed this is better handling of the limits.
The taurus Quantity(0.0) value evaluates to false. Thus when motor's limit is set to exactly 0.0 the code:
will not run the if-body. Check explicitly for None values of minval and maxval variables to avoid this problem.