Skip to content

Commit

Permalink
FAST: More flipper logging, v0.57.0.dev25
Browse files Browse the repository at this point in the history
  • Loading branch information
toomanybrians committed Oct 16, 2023
1 parent 50794f1 commit 6956ca3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mpf/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""

__version__ = '0.57.0.dev24' # Also consider whether MPF-MC pyproject.toml should be updated
__version__ = '0.57.0.dev25' # Also consider whether MPF-MC pyproject.toml should be updated
'''The full version of MPF.'''

__short_version__ = '0.57'
Expand Down
5 changes: 4 additions & 1 deletion mpf/devices/flipper.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def event_disable(self, **kwargs):
To prevent multiple rules at the same time we prioritize disable > enable.
"""
del kwargs
self.debug_log(f"Disabling via event callback. kwargs: {kwargs}")
self.disable()

def disable(self):
Expand Down Expand Up @@ -261,6 +261,8 @@ def sw_flip(self):
Note this method will keep this flipper enabled until you call
sw_release().
"""
self.debug_log('sw_flip')

if not self._enabled:
return

Expand All @@ -283,6 +285,7 @@ def sw_release(self):
See the documentation for sw_flip() for details.
"""
self.debug_log('sw_release')
self._sw_flipped = False

# disable the flipper coil(s)
Expand Down

0 comments on commit 6956ca3

Please sign in to comment.