Skip to content

Commit

Permalink
Handle start button to exit service mode
Browse files Browse the repository at this point in the history
  • Loading branch information
avanwinkle committed Jun 22, 2024
1 parent b309ce3 commit 5a4ab6d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mpf/modes/service/code/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ async def _get_key(self):
["s_flipper_right_inactive"]
): "PAGE_RIGHT",
self.machine.events.wait_for_any_event(
["s_credit_active"]
# Use the INACTIVE event to prevent attract from starting a game
# (which it does on inactive)
["sw_start_inactive"]
): "START",
self.machine.events.wait_for_any_event(
["service_trigger"]
Expand Down
3 changes: 3 additions & 0 deletions mpf/modes/service/config/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ event_player:

slide_player:
service_mode_entered: service
service_mode_exited:
service:
action: remove

0 comments on commit 5a4ab6d

Please sign in to comment.