From 0e120103c1b48d237420a462b68207fbd146acfa Mon Sep 17 00:00:00 2001 From: Ross Owen Date: Thu, 6 Mar 2014 21:17:07 +0000 Subject: [PATCH] unreachable logic the wrong way around in input switch statement. Used cases removed, unused kept. --- module_usb_audio/usb_buffer/decouple.xc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module_usb_audio/usb_buffer/decouple.xc b/module_usb_audio/usb_buffer/decouple.xc index c1f98eab..99765c39 100644 --- a/module_usb_audio/usb_buffer/decouple.xc +++ b/module_usb_audio/usb_buffer/decouple.xc @@ -164,7 +164,7 @@ void handle_audio_request(chanend c_mix_out) switch(g_curSubSlot_in) { case 2: -#if (STREAM_FORMAT_INPUT_SUBSLOT_2_USED == 1) +#if (STREAM_FORMAT_INPUT_SUBSLOT_2_USED == 0) __builtin_unreachable(); #endif for(int i = 0; i < g_numUsbChanIn; i++) @@ -191,7 +191,7 @@ __builtin_unreachable(); case 4: { -#if (STREAM_FORMAT_INPUT_SUBSLOT_4_USED == 1) +#if (STREAM_FORMAT_INPUT_SUBSLOT_4_USED == 0) __builtin_unreachable(); #endif unsigned ptr = g_aud_to_host_dptr; @@ -225,7 +225,7 @@ __builtin_unreachable(); } case 3: -#if (STREAM_FORMAT_INPUT_SUBSLOT_3_USED == 1) +#if (STREAM_FORMAT_INPUT_SUBSLOT_3_USED == 0) __builtin_unreachable(); #endif for(int i = 0; i < g_numUsbChanIn; i++)