From cbe926f686077ce1f3535c0657acb7794cc75e4b Mon Sep 17 00:00:00 2001 From: Larry Snizek Date: Tue, 18 Jul 2017 17:21:14 +0100 Subject: [PATCH] Correct stray "else" - meant that g_freqChange never changed --- module_usb_audio/usb_buffer/usb_buffer.xc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module_usb_audio/usb_buffer/usb_buffer.xc b/module_usb_audio/usb_buffer/usb_buffer.xc index 79d9fe36..8c322894 100644 --- a/module_usb_audio/usb_buffer/usb_buffer.xc +++ b/module_usb_audio/usb_buffer/usb_buffer.xc @@ -353,8 +353,8 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, * handshake elsewhere */ SET_SHARED_GLOBAL(g_freqChange_sampFreq, receivedSampleFreq); } - else #if (AUDIO_CLASS == 2) + else if(cmd == SET_STREAM_FORMAT_IN) { unsigned formatChange_DataFormat = inuint(c_aud_ctl); @@ -957,4 +957,4 @@ void buffer(register chanend c_aud_out, register chanend c_aud_in, } } -#endif /* NO_USB */ \ No newline at end of file +#endif /* NO_USB */