mirror of
https://github.com/pkali/piradio-mini.git
synced 2026-05-20 22:34:22 +02:00
Remove unnecessary radio.play() call after reboot.
This radio.play() call caused a bad choice station after the restart.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user