Remove unnecessary radio.play() call after reboot.

This radio.play() call caused a bad choice station after the restart.
This commit is contained in:
Pecusx
2017-01-23 21:05:59 +01:00
committed by GitHub
parent 65d7ca70dd
commit ddb8aebd9b
+3 -3
View File
@@ -149,9 +149,9 @@ class MyDaemon(Daemon):
time.sleep(2.0) time.sleep(2.0)
reload(lcd,radio) reload(lcd,radio)
radio.play(get_stored_id(CurrentFile)) #radio.play(get_stored_id(CurrentFile))
log.message("Current ID = " + str(radio.getCurrentID()), log.INFO) #log.message("Current ID = " + str(radio.getCurrentID()), log.INFO)
lcd.line3("Radio Station " + str(radio.getCurrentID())) #lcd.line3("Radio Station " + str(radio.getCurrentID()))
# Set up switch event processing # Set up switch event processing
GPIO.add_event_detect(menu_switch, GPIO.RISING, callback=switch_event, bouncetime=200) GPIO.add_event_detect(menu_switch, GPIO.RISING, callback=switch_event, bouncetime=200)