diff options
Diffstat (limited to 'firmware/usbstack/usb_class_driver.h')
-rw-r--r-- | firmware/usbstack/usb_class_driver.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/usbstack/usb_class_driver.h b/firmware/usbstack/usb_class_driver.h index 36f2ea9e3d..a9bc759a5b 100644 --- a/firmware/usbstack/usb_class_driver.h +++ b/firmware/usbstack/usb_class_driver.h | |||
@@ -85,10 +85,10 @@ struct usb_class_driver { | |||
85 | #endif | 85 | #endif |
86 | }; | 86 | }; |
87 | 87 | ||
88 | #define PACK_DESCRIPTOR(dest, descriptor) \ | 88 | #define PACK_DATA(dest, data) \ |
89 | do { \ | 89 | do { \ |
90 | memcpy(dest, &(descriptor), sizeof(descriptor)); \ | 90 | memcpy(dest, &(data), sizeof(data)); \ |
91 | dest += sizeof(descriptor); \ | 91 | dest += sizeof(data); \ |
92 | } while (0) | 92 | } while (0) |
93 | 93 | ||
94 | #endif | 94 | #endif |