cleanup
This commit is contained in:
parent
d43e71a17f
commit
a76c328b0b
|
@ -85,7 +85,6 @@ class ZapSaber:
|
||||||
logger.info('Stopping map...')
|
logger.info('Stopping map...')
|
||||||
self.playing = False
|
self.playing = False
|
||||||
self.map_failed = False
|
self.map_failed = False
|
||||||
self.combo = 0
|
|
||||||
elif not self.playing and message['TimeElapsed'] != 0:
|
elif not self.playing and message['TimeElapsed'] != 0:
|
||||||
logger.info('Starting map...')
|
logger.info('Starting map...')
|
||||||
self.playing = True
|
self.playing = True
|
||||||
|
@ -95,7 +94,8 @@ async def main(config):
|
||||||
logger.info('Initializing...')
|
logger.info('Initializing...')
|
||||||
|
|
||||||
# Set up the shocker.
|
# Set up the shocker.
|
||||||
shocker = PiShock(config['username'], config['apiKey'], config['code'], name='ZapSaber')
|
shocker = PiShock(config['username'], config['apiKey'], config['code'],
|
||||||
|
name='ZapSaber')
|
||||||
shocker.beep()
|
shocker.beep()
|
||||||
events = ZapSaber(config, shocker)
|
events = ZapSaber(config, shocker)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue