make function names match

This commit is contained in:
petrucci4prez 2017-06-10 02:32:17 -04:00
parent 580b5650a5
commit fbce318200
1 changed files with 5 additions and 5 deletions

View File

@ -51,7 +51,7 @@ class KeypadListener:
if event.code in numKeys: if event.code in numKeys:
if stateMachine.currentState != stateMachine.states.disarmed: if stateMachine.currentState != stateMachine.states.disarmed:
self._buf = self._buf + numKeys[event.code] self._buf = self._buf + numKeys[event.code]
self._startResetCountdown() self._startResetTimer()
numKeySound.play() numKeySound.play()
# ctrl input # ctrl input
@ -80,7 +80,7 @@ class KeypadListener:
elif val == 'BS': elif val == 'BS':
self._buf = self._buf[:-1] self._buf = self._buf[:-1]
if self._buf == '': if self._buf == '':
self._stopResetCountdown() self._stopResetTimer()
backspaceSound.play() backspaceSound.play()
# reset buffer # reset buffer
@ -129,13 +129,13 @@ class KeypadListener:
pass pass
def resetBuffer(self): def resetBuffer(self):
self._stopResetCountdown() self._stopResetTimer()
self._clearBuffer() self._clearBuffer()
def _startResetCountdown(self): def _startResetTimer(self):
self._resetTimer = Timer(30, self._clearBuffer) self._resetTimer = Timer(30, self._clearBuffer)
def _stopResetCountdown(self): def _stopResetTimer(self):
try: try:
self._resetTimer.cancel() self._resetTimer.cancel()
except AttributeError: except AttributeError: