Browse Source

reset radio

Karl Hudgell 6 months ago
parent
commit
93ee1a8eff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      buttons.py

+ 1 - 0
buttons.py

@@ -41,6 +41,7 @@ def button_callback_3(channel):
             print("Button 3 held for 3 seconds! Sending RADIO2.")
             print("Button 3 held for 3 seconds! Sending RADIO2.")
             disc_data = check_current_disc(client)
             disc_data = check_current_disc(client)
             update_disc(client, ["ytmusic",disc_data['name'],disc_data['type'],"RESET"])
             update_disc(client, ["ytmusic",disc_data['name'],disc_data['type'],"RESET"])
+            time.sleep(1)
             update_disc(client, ["ytmusic",disc_data['name'],disc_data['type'],disc_data['id']])
             update_disc(client, ["ytmusic",disc_data['name'],disc_data['type'],disc_data['id']])
             return  # Exit after sending RADIO2
             return  # Exit after sending RADIO2