Skip to content

Commit

Permalink
do not break conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed Dec 19, 2016
1 parent a36226a commit 251f8a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mpf/devices/score_reel.py
Expand Up @@ -221,9 +221,10 @@ def check_hw_switches(self, no_event=False):
self.hw_sync = True
# only change this if we know where we are or can confirm that
# we're not in the right position
if value != -999 and self.assumed_value != value:
self.log.info("Setting value to %s because that switch is active.".format(value))
self.assumed_value = value
if value != -999:
if value != self.assumed_value:
self.log.info("Setting value to %s because that switch is active.".format(value))
self.assumed_value = value

# if value is -999, but we have a switch for the assumed value,
# then we're in the wrong position because our hw_value should be
Expand Down

0 comments on commit 251f8a1

Please sign in to comment.