From 68e0827c55e369208f17df950f7dbcce906eeab2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sun, 26 Aug 2012 01:37:15 +0200 Subject: Added missing packed attribute on device descriptor. --- usb/descriptor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3