Skip to content
Permalink
Browse files

wait 3s on init like spike

  • Loading branch information...
jabdoa2 committed Aug 1, 2019
1 parent 46c2d91 commit f235b9a70f8d81d38e4e77c0571690aef7bd35b0
Showing with 3 additions and 0 deletions.
  1. +3 −0 mpf/platforms/spike/spike.py
@@ -973,6 +973,9 @@ def _initialize(self) -> Generator[int, None, None]:

self.log.debug("Resetting node bus and configuring traffic.")
yield from self.send_cmd_sync(0, SpikeNodebus.Reset, bytearray())
# wait 3s (same as spike)
for _ in range(12):
yield from self._send_raw(bytearray([1, 250]))

yield from self.send_cmd_sync(0, SpikeNodebus.SetTraffic, bytearray([34])) # block traffic (false)
yield from self.send_cmd_sync(0, SpikeNodebus.SetTraffic, bytearray([17])) # set traffic

0 comments on commit f235b9a

Please sign in to comment.
You can’t perform that action at this time.