File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
hardware/arduino/avr/cores/arduino Expand file tree Collapse file tree 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)
504504 }
505505 else if (USB_STRING_DESCRIPTOR_TYPE == t)
506506 {
507- if (setup.wValueL == 0 ) {
507+ if (setup.wValueL == 0 ) {
508508 desc_addr = (const u8 *)&STRING_LANGUAGE;
509- }
509+ }
510510 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+ }
513513 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+ }
516516 else
517517 return false ;
518518 }
519519
520520 if (desc_addr == 0 )
521521 return false ;
522- u8 desc_length = pgm_read_byte (desc_addr);
522+ u8 desc_length = pgm_read_byte (desc_addr);
523523
524524 USB_SendControl (TRANSFER_PGM,desc_addr,desc_length);
525525 return true ;
You can’t perform that action at this time.
0 commit comments