Small fix - RSS in standby.

This commit is contained in:
Pecusx
2017-01-06 16:26:44 +01:00
committed by GitHub
parent b85e4d3818
commit 389cc5c369
+9 -7
View File
@@ -257,7 +257,10 @@ class MyDaemon(Daemon):
toggleScrolling = True toggleScrolling = True
if display_mode == radio.MODE_SLEEP: if display_mode == radio.MODE_SLEEP:
time.sleep(1) if config.rss:
time.sleep(0.1)
else:
time.sleep(1)
else: else:
time.sleep(0.1) time.sleep(0.1)
@@ -440,7 +443,7 @@ def get_switch_states(lcd,radio,rss):
# Sleep exit message # Sleep exit message
def DisplayExitMessage(lcd): def DisplayExitMessage(lcd):
lcd.line3("Press menu button to") lcd.line3("Press menu button to")
lcd.line4(" exit sleep mode") lcd.line4("exit sleep mode")
time.sleep(1) time.sleep(1)
lcd.line3("") lcd.line3("")
lcd.line4("") lcd.line4("")
@@ -770,17 +773,16 @@ def displayWakeUpMessage(lcd):
def displayShutdown(lcd): def displayShutdown(lcd):
lcd.setBright(False) # LCD backlight brightness to low (Pecus) lcd.setBright(False) # LCD backlight brightness to low (Pecus)
lcd.line1(" Stopping radio") lcd.line1("Stopping radio")
radio.execCommand("service mpd stop") radio.execCommand("service mpd stop")
radio.pandora_stop() radio.pandora_stop()
lcd.line2(" ")
lcd.line3(" ") lcd.line3(" ")
lcd.line4(" ") lcd.line4(" ")
radio.execCommand("shutdown -h now") radio.execCommand("shutdown -h now")
lcd.line2(" Shutdown issued") lcd.line2("Shutdown issued")
time.sleep(3) time.sleep(3)
lcd.line1(" Radio stopped") lcd.line1("Radio stopped")
lcd.line2(" Power off radio") lcd.line2("Power off radio")
return return
def displayInfo(lcd,ipaddr,mpd_version): def displayInfo(lcd,ipaddr,mpd_version):