summaryrefslogtreecommitdiff
path: root/usb
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-08-26 01:37:15 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-08-26 01:37:15 +0200
commit68e0827c55e369208f17df950f7dbcce906eeab2 (patch)
tree31900285b6857ebd9b49de9067021f747584c022 /usb
parent066100177770944a376e3a01cf4685ff9d2f562f (diff)
Added missing packed attribute on device descriptor.
Diffstat (limited to 'usb')
-rw-r--r--usb/descriptor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb/descriptor.h b/usb/descriptor.h
index f889436..f5f105c 100644
--- a/usb/descriptor.h
+++ b/usb/descriptor.h
@@ -34,7 +34,7 @@ struct Device_desc {
uint8_t iProduct;
uint8_t iSerialNumber;
uint8_t bNumConfigurations;
-};
+} __attribute__((packed));
constexpr Device_desc device_desc(
uint16_t bcdUSB,