From 05e12ac18316d7dbb427c46c32c993fe23411c89 Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 21 Aug 2014 15:36:01 +0100 Subject: [PATCH] c_dig_rx only declared if required (saves chanends) --- module_usb_audio/main.xc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module_usb_audio/main.xc b/module_usb_audio/main.xc index 4e271583..abbe0873 100755 --- a/module_usb_audio/main.xc +++ b/module_usb_audio/main.xc @@ -364,7 +364,11 @@ chanend ?c_clk_int chan c_mix_out; #endif +#if defined(SPDIF_RX) || defined(ADAT_RX) chan c_dig_rx; +#else + #define c_dig_rx null +#endif par {