From 0641a96ae5c2f2de4b476c16e189a9e6d1f285c8 Mon Sep 17 00:00:00 2001 From: xross Date: Thu, 12 Oct 2017 13:27:54 +0100 Subject: [PATCH] DFU define rename --- lib_xua/src/usb_audio/audio_io/audio_io.xc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_xua/src/usb_audio/audio_io/audio_io.xc b/lib_xua/src/usb_audio/audio_io/audio_io.xc index a58fee56..7eb50673 100755 --- a/lib_xua/src/usb_audio/audio_io/audio_io.xc +++ b/lib_xua/src/usb_audio/audio_io/audio_io.xc @@ -1048,7 +1048,7 @@ void SpdifTxWrapper(chanend c_spdif_tx) /* This function is a dummy version of the deliver thread that does not connect to the codec ports. It is used during DFU reset. */ -#if DFU +#if (XUA_DFU == 1) [[distributable]] void DFUHandler(server interface i_dfu i, chanend ?c_user_cmd); #endif @@ -1384,7 +1384,7 @@ chanend ?c_config, chanend ?c curSamRes_DAC = inuint(c_mix_out); } -#ifdef DFU +#if (XUA_DFU == 1) /* Currently no more audio will happen after this point */ if ((curSamFreq / AUD_TO_USB_RATIO) == AUDIO_STOP_FOR_DFU) {