this arg is not necessary

This commit is contained in:
petrucci4prez 2017-06-11 03:10:55 -04:00
parent b39db8d87e
commit df5eea8b71
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class KeypadListener:
- input listener that accepts events and reacts in fun ways - input listener that accepts events and reacts in fun ways
- countdown timer to reset the input buffer after 30 seconds of inactivity - countdown timer to reset the input buffer after 30 seconds of inactivity
''' '''
def __init__(self, stateMachine, callbackDisarm, callbackArm, soundLib, passwd): def __init__(self, stateMachine, callbackDisarm, callbackArm, passwd):
ctrlKeys = { 69: 'NUML', 98: '/', 14: 'BS', 96: 'ENTER'} ctrlKeys = { 69: 'NUML', 98: '/', 14: 'BS', 96: 'ENTER'}
@ -36,6 +36,8 @@ class KeypadListener:
82: '0', 83: '.' 82: '0', 83: '.'
} }
soundLib = stateMachine.soundLib
numKeySound = soundLib.soundEffects['numKey'] numKeySound = soundLib.soundEffects['numKey']
ctrlKeySound = soundLib.soundEffects['ctrlKey'] ctrlKeySound = soundLib.soundEffects['ctrlKey']
wrongPassSound = soundLib.soundEffects['wrongPass'] wrongPassSound = soundLib.soundEffects['wrongPass']

View File

@ -137,7 +137,6 @@ class StateMachine:
stateMachine = self, stateMachine = self,
callbackDisarm = self.DISARM, callbackDisarm = self.DISARM,
callbackArm = self.ARM, callbackArm = self.ARM,
soundLib = self.soundLib,
passwd = '5918462' passwd = '5918462'
) )
) )