Sleep Timer button added

After this update, you need to change the remote control to another. And after the restart, change the remote control back to the right one.
This commit is contained in:
Pecusx
2017-03-05 13:15:52 +01:00
committed by GitHub
parent f65a277d0d
commit f62ba47e57
3 changed files with 10 additions and 1 deletions
+8
View File
@@ -363,6 +363,14 @@ class Radio:
self.setDisplayMode(display_mode) # (Pecus)
self.setInterrupt() # (Pecus)
elif key == 'KEY_TIME': # timer on/off (Pecus)
if self.display_mode != self.MODE_SLEEP: # no in sleep mode! (Pecus)
if self.getTimer():
self.timerOff()
else:
self.timerOn()
self.setInterrupt() # (Pecus)
# Handle left,right, up and down keys
else:
+1
View File
@@ -161,6 +161,7 @@ def listener():
listener.register('KEY_RADIO',handleIRevent) # (Pecus)
listener.register('KEY_MEDIA',handleIRevent) # (Pecus)
listener.register('KEY_PANDORA',handleIRevent) # (Pecus)
listener.register('KEY_TIME',handleIRevent) # (Pecus)
log.message("Activating IR Remote Control listener", log.DEBUG)
listener.activate()
+1 -1
View File
@@ -1 +1 @@
5.4g
5.4h