g_curStreamAlt_Out reset to 0 on bus reset. Fixes issue when input packets were incorrectly sized on bus-speed change.

This commit is contained in:
Ross Owen
2014-04-24 16:18:58 +01:00
parent 61339f6650
commit 93731c6e23

View File

@@ -653,6 +653,7 @@ void Endpoint0(chanend c_ep0_out, chanend c_ep0_in, chanend c_audioControl,
g_curUsbSpeed = XUD_ResetEndpoint(ep0_out, &ep0_in);
#endif
g_currentConfig = 0;
g_curStreamAlt_Out = 0;
#ifdef DFU
if (DFUReportResetState(null))