File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -633,7 +633,7 @@ void SERCOM::initClockNVIC( void )
633
633
clockId = GCM_SERCOM4_CORE;
634
634
IdNvic = SERCOM4_IRQn;
635
635
}
636
- else if (sercom == SERCOM5)
636
+ else // if(sercom == SERCOM5)
637
637
{
638
638
clockId = GCM_SERCOM5_CORE;
639
639
IdNvic = SERCOM5_IRQn;
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ uint32_t USBD_Available(uint32_t ep)
105
105
// Return number of bytes read
106
106
uint32_t USBD_Recv (uint32_t ep, void * d, uint32_t len)
107
107
{
108
- if (!_usbConfiguration || len < 0 )
108
+ if (!_usbConfiguration)
109
109
return -1 ;
110
110
111
111
uint32_t n = UDD_FifoByteCount (ep);
@@ -200,8 +200,8 @@ uint32_t USBD_RecvControl(void* d, uint32_t len)
200
200
if (read > len)
201
201
read = len;
202
202
UDD_Recv (EP0, &buffer);
203
- while (!udd_is_OUT_transf_cplt (EP0));
204
- for (int i=0 ; i<read; i++) {
203
+ while (!udd_is_OUT_transf_cplt (EP0));
204
+ for (uint32_t i=0 ; i<read; i++) {
205
205
data[i] = buffer[i];
206
206
}
207
207
udd_OUT_transfer_allowed (EP0);
You can’t perform that action at this time.
0 commit comments