From ddb8aebd9b9a824092454ff28f5cc8cb1642bf39 Mon Sep 17 00:00:00 2001 From: Pecusx Date: Mon, 23 Jan 2017 21:05:59 +0100 Subject: [PATCH] Remove unnecessary radio.play() call after reboot. This radio.play() call caused a bad choice station after the restart. --- radio4.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/radio4.py b/radio4.py index 7295a11..a65ae0f 100755 --- a/radio4.py +++ b/radio4.py @@ -149,9 +149,9 @@ class MyDaemon(Daemon): time.sleep(2.0) reload(lcd,radio) - radio.play(get_stored_id(CurrentFile)) - log.message("Current ID = " + str(radio.getCurrentID()), log.INFO) - lcd.line3("Radio Station " + str(radio.getCurrentID())) + #radio.play(get_stored_id(CurrentFile)) + #log.message("Current ID = " + str(radio.getCurrentID()), log.INFO) + #lcd.line3("Radio Station " + str(radio.getCurrentID())) # Set up switch event processing GPIO.add_event_detect(menu_switch, GPIO.RISING, callback=switch_event, bouncetime=200)