File tree 1 file changed +7
-7
lines changed
hardware/arduino/avr/cores/arduino
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -504,22 +504,22 @@ bool SendDescriptor(Setup& setup)
504
504
}
505
505
else if (USB_STRING_DESCRIPTOR_TYPE == t)
506
506
{
507
- if (setup.wValueL == 0 ) {
507
+ if (setup.wValueL == 0 ) {
508
508
desc_addr = (const u8*)&STRING_LANGUAGE;
509
- }
509
+ }
510
510
else if (setup.wValueL == IPRODUCT) {
511
- return USB_SendStringDescriptor (STRING_PRODUCT, strlen (USB_PRODUCT));
512
- }
511
+ return USB_SendStringDescriptor (STRING_PRODUCT, strlen (USB_PRODUCT));
512
+ }
513
513
else if (setup.wValueL == IMANUFACTURER) {
514
- return USB_SendStringDescriptor (STRING_MANUFACTURER, strlen (USB_MANUFACTURER));
515
- }
514
+ return USB_SendStringDescriptor (STRING_MANUFACTURER, strlen (USB_MANUFACTURER));
515
+ }
516
516
else
517
517
return false ;
518
518
}
519
519
520
520
if (desc_addr == 0 )
521
521
return false ;
522
- u8 desc_length = pgm_read_byte (desc_addr);
522
+ u8 desc_length = pgm_read_byte (desc_addr);
523
523
524
524
USB_SendControl (TRANSFER_PGM,desc_addr,desc_length);
525
525
return true ;
You can’t perform that action at this time.
0 commit comments