diff options
Diffstat (limited to 'usb-fast-audio-source/main.c')
-rw-r--r-- | usb-fast-audio-source/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usb-fast-audio-source/main.c b/usb-fast-audio-source/main.c index 57808a1..cc57325 100644 --- a/usb-fast-audio-source/main.c +++ b/usb-fast-audio-source/main.c @@ -272,6 +272,8 @@ int main(void) volatile uint8_t usbConn = 0;
volatile uint8_t plyOn = 0, recOn = 0;
+ TRACE_CONFIGURE(DBGU_STANDARD, 115200, BOARD_MCK);
+
printf("-- USB Device Fast Audio Source %s --\n\r", SOFTPACK_VERSION);
printf("-- %s\n\r", BOARD_NAME);
printf("-- Compiled: %s %s --\n\r", __DATE__, __TIME__);
@@ -291,7 +293,7 @@ int main(void) /* connect if needed */
VBus_Configure();
- fastsource_start(0x86);
+ static int state = 0;
/* Infinite loop */
while (1)
@@ -301,6 +303,10 @@ int main(void) usbConn = 0;
continue;
}
+ if (state == 0) {
+ fastsource_start();
+ state = 1;
+ }
if (plyOn)
{
if (isPlyActive == 0)
|