mirror of
https://github.com/pkali/piradio-mini.git
synced 2026-05-20 22:34:22 +02:00
minor changes
This commit is contained in:
@@ -415,7 +415,7 @@ def get_switch_states(lcd,radio,rss):
|
|||||||
|
|
||||||
if display_mode == radio.MODE_SOURCE:
|
if display_mode == radio.MODE_SOURCE:
|
||||||
radio.toggleSource(UP)
|
radio.toggleSource(UP)
|
||||||
radio.setReload(True)
|
#radio.setReload(True)
|
||||||
|
|
||||||
elif display_mode == radio.MODE_SEARCH:
|
elif display_mode == radio.MODE_SEARCH:
|
||||||
wait = 0.5
|
wait = 0.5
|
||||||
@@ -444,7 +444,7 @@ def get_switch_states(lcd,radio,rss):
|
|||||||
|
|
||||||
if display_mode == radio.MODE_SOURCE:
|
if display_mode == radio.MODE_SOURCE:
|
||||||
radio.toggleSource(DOWN)
|
radio.toggleSource(DOWN)
|
||||||
radio.setReload(True)
|
#radio.setReload(True)
|
||||||
|
|
||||||
elif display_mode == radio.MODE_SEARCH:
|
elif display_mode == radio.MODE_SEARCH:
|
||||||
wait = 0.5
|
wait = 0.5
|
||||||
|
|||||||
@@ -347,6 +347,7 @@ class Radio:
|
|||||||
|
|
||||||
# Sleep mode - forcing timer (Pecus)
|
# Sleep mode - forcing timer (Pecus)
|
||||||
elif key == 'KEY_SLEEP': # (Pecus)
|
elif key == 'KEY_SLEEP': # (Pecus)
|
||||||
|
if self.display_mode != self.MODE_SLEEP: # no in sleep mode! (Pecus)
|
||||||
self.timerValue = 1 # (Pecus)
|
self.timerValue = 1 # (Pecus)
|
||||||
self.timerOn() # (Pecus)
|
self.timerOn() # (Pecus)
|
||||||
now = int(time.time()) # (Pecus)
|
now = int(time.time()) # (Pecus)
|
||||||
|
|||||||
Reference in New Issue
Block a user