diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-08-26 01:37:15 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2012-08-26 01:37:15 +0200 |
commit | 68e0827c55e369208f17df950f7dbcce906eeab2 (patch) | |
tree | 31900285b6857ebd9b49de9067021f747584c022 | |
parent | 066100177770944a376e3a01cf4685ff9d2f562f (diff) |
Added missing packed attribute on device descriptor.
-rw-r--r-- | usb/descriptor.h | 2 |
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, |