equal
deleted
inserted
replaced
3024 } |
3024 } |
3025 else |
3025 else |
3026 { |
3026 { |
3027 dUsbc->ProcessDeviceState(deviceState); |
3027 dUsbc->ProcessDeviceState(deviceState); |
3028 // Send Status to EP0 buffer. |
3028 // Send Status to EP0 buffer. |
3029 dUsbc->iBuffers[dUsbc->iEP0OutBuff].SendEp0StatusPacket(deviceState); |
3029 // Before the client calls RDevUsbcScClient::FinalizeInterface(), |
|
3030 // this function might be called. |
|
3031 // So we add a guard for dUsbc->iBuffers |
|
3032 if( dUsbc->iBuffers ) |
|
3033 { |
|
3034 dUsbc->iBuffers[dUsbc->iEP0OutBuff].SendEp0StatusPacket(deviceState); |
|
3035 } |
3030 } |
3036 } |
3031 |
3037 |
3032 // Only queue if userside is interested |
3038 // Only queue if userside is interested |
3033 if (dUsbc->iDeviceStatusNeeded) |
3039 if (dUsbc->iDeviceStatusNeeded) |
3034 { |
3040 { |