diff --git a/radio4.py b/radio4.py index 350c95e..c7a22e6 100755 --- a/radio4.py +++ b/radio4.py @@ -257,7 +257,10 @@ class MyDaemon(Daemon): toggleScrolling = True if display_mode == radio.MODE_SLEEP: - time.sleep(1) + if config.rss: + time.sleep(0.1) + else: + time.sleep(1) else: time.sleep(0.1) @@ -440,7 +443,7 @@ def get_switch_states(lcd,radio,rss): # Sleep exit message def DisplayExitMessage(lcd): lcd.line3("Press menu button to") - lcd.line4(" exit sleep mode") + lcd.line4("exit sleep mode") time.sleep(1) lcd.line3("") lcd.line4("") @@ -770,17 +773,16 @@ def displayWakeUpMessage(lcd): def displayShutdown(lcd): lcd.setBright(False) # LCD backlight brightness to low (Pecus) - lcd.line1(" Stopping radio") + lcd.line1("Stopping radio") radio.execCommand("service mpd stop") radio.pandora_stop() - lcd.line2(" ") lcd.line3(" ") lcd.line4(" ") radio.execCommand("shutdown -h now") - lcd.line2(" Shutdown issued") + lcd.line2("Shutdown issued") time.sleep(3) - lcd.line1(" Radio stopped") - lcd.line2(" Power off radio") + lcd.line1("Radio stopped") + lcd.line2("Power off radio") return def displayInfo(lcd,ipaddr,mpd_version):