minor changes

This commit is contained in:
Pecusx
2016-11-26 19:39:54 +01:00
committed by GitHub
parent c3f249b21d
commit fcab0b71ae
2 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -415,7 +415,7 @@ def get_switch_states(lcd,radio,rss):
if display_mode == radio.MODE_SOURCE:
radio.toggleSource(UP)
radio.setReload(True)
#radio.setReload(True)
elif display_mode == radio.MODE_SEARCH:
wait = 0.5
@@ -444,7 +444,7 @@ def get_switch_states(lcd,radio,rss):
if display_mode == radio.MODE_SOURCE:
radio.toggleSource(DOWN)
radio.setReload(True)
#radio.setReload(True)
elif display_mode == radio.MODE_SEARCH:
wait = 0.5
+8 -7
View File
@@ -347,13 +347,14 @@ class Radio:
# Sleep mode - forcing timer (Pecus)
elif key == 'KEY_SLEEP': # (Pecus)
self.timerValue = 1 # (Pecus)
self.timerOn() # (Pecus)
now = int(time.time()) # (Pecus)
self.timeTimer = now - self.timerValue * 60 # (Pecus)
self.fireTimer() # (Pecus)
time.sleep(0.5) # Zapobiega przewinieciu sie calego tytulu pandory na LCD przed wylaczeniem... dlaczego???
self.setInterrupt() # (Pecus)
if self.display_mode != self.MODE_SLEEP: # no in sleep mode! (Pecus)
self.timerValue = 1 # (Pecus)
self.timerOn() # (Pecus)
now = int(time.time()) # (Pecus)
self.timeTimer = now - self.timerValue * 60 # (Pecus)
self.fireTimer() # (Pecus)
time.sleep(0.5) # Zapobiega przewinieciu sie calego tytulu pandory na LCD przed wylaczeniem... dlaczego???
self.setInterrupt() # (Pecus)
# Wakeup from sleep - forcing menu and unmute (Pecus)
elif key == 'KEY_WAKEUP': # (Pecus)