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 */