Merge pull request #389 from OISumeko/issue300

Fix for issue #300
This commit is contained in:
blitzmann
2015-10-30 21:26:39 -04:00

View File

@@ -169,13 +169,13 @@ class CapSimulator(object):
iterations += 1
t_last = t_now
if cap < cap_lowest:
if cap < 0.0:
break
cap_lowest = cap
t_last = t_now
# queue the next activation of this module
t_now += duration
shot += 1