From ba68e198db46a77b6b8df85f473ff144fe67f819 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Thu, 29 Nov 2018 17:25:46 -0500 Subject: [PATCH] Use PACKED for usb_endpoint_descriptor and usb_config_descriptor. --- nx/include/switch/services/usb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/include/switch/services/usb.h b/nx/include/switch/services/usb.h index 860134c7..27cbd96c 100644 --- a/nx/include/switch/services/usb.h +++ b/nx/include/switch/services/usb.h @@ -26,7 +26,7 @@ struct usb_endpoint_descriptor { uint8_t bmAttributes; uint16_t wMaxPacketSize; uint8_t bInterval; -}; +} PACKED; /// Imported from libusb, with some adjustments. struct usb_interface_descriptor { @@ -69,7 +69,7 @@ struct usb_config_descriptor { uint8_t iConfiguration; uint8_t bmAttributes; uint8_t MaxPower; -}; +} PACKED; /// Imported from libusb, with some adjustments. struct usb_ss_endpoint_companion_descriptor {