Fixed build issue when DFU is disabled (and DFU distributed into EP0)

This commit is contained in:
Ross Owen
2015-09-07 10:19:32 +01:00
parent 9bf8075bd3
commit 7f96ce36e4

View File

@@ -278,7 +278,7 @@ void usb_audio_core(chanend c_mix_out
#endif #endif
, chanend ?c_clk_int , chanend ?c_clk_int
, chanend ?c_clk_ctl , chanend ?c_clk_ctl
, client interface i_dfu dfuInterface , client interface i_dfu ?dfuInterface
) )
{ {
chan c_sof; chan c_sof;
@@ -536,8 +536,10 @@ int main()
{ {
#if (XUD_TILE == 0) #if (XUD_TILE == 0)
/* Check if USB is on the flash tile (tile 0) */ /* Check if USB is on the flash tile (tile 0) */
#ifdef DFU
[[distribute]] [[distribute]]
DFUHandler(dfuInterface, null); DFUHandler(dfuInterface, null);
#endif
#endif #endif
usb_audio_core(c_mix_out usb_audio_core(c_mix_out
#ifdef MIDI #ifdef MIDI