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 @@ -204,7 +204,7 @@ bool USBDeviceClass::sendDescriptor(USBSetup &setup)
204
204
{
205
205
uint8_t t = setup.wValueH ;
206
206
uint8_t desc_length = 0 ;
207
- bool _cdcComposite;
207
+ bool _cdcComposite = 0 ;
208
208
int ret;
209
209
const uint8_t *desc_addr = 0 ;
210
210
@@ -559,7 +559,7 @@ void USBDeviceClass::flush(uint32_t ep)
559
559
// RAM buffer is full, we can send data (IN)
560
560
usbd.epBank1SetReady (ep);
561
561
562
- // Clear the transfer complete flag
562
+ // Clear the transfer complete flag
563
563
usbd.epBank1AckTransferComplete (ep);
564
564
}
565
565
}
@@ -877,6 +877,7 @@ bool USBDeviceClass::handleStandardSetup(USBSetup &setup)
877
877
sendZlp (0 );
878
878
return true ;
879
879
}
880
+ return false ;
880
881
881
882
case SET_ADDRESS:
882
883
setAddress (setup.wValueL );
@@ -1010,7 +1011,6 @@ void USBDeviceClass::ISRHandler()
1010
1011
// Check if endpoint has a pending interrupt
1011
1012
if ((ept_int & (1 << i)) != 0 )
1012
1013
{
1013
-
1014
1014
// Endpoint Transfer Complete (0/1) Interrupt
1015
1015
if (usbd.epBank0IsTransferComplete (i) ||
1016
1016
usbd.epBank1IsTransferComplete (i))
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ bool HID_::setup(USBSetup& setup)
146
146
147
147
HID_::HID_ (void ) : PluggableUSBModule(1 , 1 , epType),
148
148
rootNode(NULL ), descriptorSize(0 ),
149
- protocol(1 ), idle(1 )
149
+ protocol(HID_REPORT_PROTOCOL ), idle(1 )
150
150
{
151
151
epType[0 ] = USB_ENDPOINT_TYPE_INTERRUPT | USB_ENDPOINT_IN (0 );;
152
152
PluggableUSB ().plug (this );
You can’t perform that action at this time.
0 commit comments