Przeglądaj źródła

Radio will now set the volume to its default value on boot.

Jordy Sipkema 9 lat temu
rodzic
commit
cefccc8eda
2 zmienionych plików z 2 dodań i 3 usunięć
  1. 0 3
      main.c
  2. 2 0
      mp3stream.c

+ 0 - 3
main.c

@@ -318,9 +318,6 @@ int main(void)
 
 	/* Enable global interrupts */
 	sei();
-
-    // Set volume to its default value
-    setVolume();
 	
 	LcdBackLight(LCD_BACKLIGHT_OFF);
 	X12RtcGetClock(&timeCheck);

+ 2 - 0
mp3stream.c

@@ -209,6 +209,8 @@ THREAD(Mp3Player, args)
             }
         }
 
+        setVolume();
+
         /*
          * Do not read pass metadata.
          * This causes ugly hiccups.