aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@freetronics.com>2013-05-17 15:01:15 +1000
committerCristian Maglie <c.maglie@bug.st>2013-07-17 14:37:49 +0200
commit0340b90366350b61983a3619805f65539fabbfc8 (patch)
tree44a71336d40e8fbd7bd1108fd7d6a541d4c7d4dc
parent96286247b6f4e8871628f586391e508e665b3c29 (diff)
Fix whitespace (tabify), oops
-rw-r--r--cores/arduino/USBCore.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index 680cba7..9a50bda 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -504,22 +504,22 @@ bool SendDescriptor(Setup& setup)
}
else if (USB_STRING_DESCRIPTOR_TYPE == t)
{
- if (setup.wValueL == 0) {
+ if (setup.wValueL == 0) {
desc_addr = (const u8*)&STRING_LANGUAGE;
- }
+ }
else if (setup.wValueL == IPRODUCT) {
- return USB_SendStringDescriptor(STRING_PRODUCT, strlen(USB_PRODUCT));
- }
+ return USB_SendStringDescriptor(STRING_PRODUCT, strlen(USB_PRODUCT));
+ }
else if (setup.wValueL == IMANUFACTURER) {
- return USB_SendStringDescriptor(STRING_MANUFACTURER, strlen(USB_MANUFACTURER));
- }
+ return USB_SendStringDescriptor(STRING_MANUFACTURER, strlen(USB_MANUFACTURER));
+ }
else
return false;
}
if (desc_addr == 0)
return false;
- u8 desc_length = pgm_read_byte(desc_addr);
+ u8 desc_length = pgm_read_byte(desc_addr);
USB_SendControl(TRANSFER_PGM,desc_addr,desc_length);
return true;