From 7f96ce36e495179bbe0a970fc0bdcd8827f01249 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Mon, 7 Sep 2015 10:19:32 +0100 Subject: [PATCH] Fixed build issue when DFU is disabled (and DFU distributed into EP0) --- module_usb_audio/main.xc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index 623b5686..1eeb6f63 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -278,7 +278,7 @@ void usb_audio_core(chanend c_mix_out #endif , chanend ?c_clk_int , chanend ?c_clk_ctl -, client interface i_dfu dfuInterface +, client interface i_dfu ?dfuInterface ) { chan c_sof; @@ -536,8 +536,10 @@ int main() { #if (XUD_TILE == 0) /* Check if USB is on the flash tile (tile 0) */ +#ifdef DFU [[distribute]] DFUHandler(dfuInterface, null); +#endif #endif usb_audio_core(c_mix_out #ifdef MIDI