mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +01:00
Increase the size of the USB Descriptor array to take extra char
This commit is contained in:
parent
9f44e588f7
commit
2f9c9df736
@ -33,7 +33,7 @@
|
|||||||
#include <pios_usbhook.h> /* PIOS_USBHOOK_* */
|
#include <pios_usbhook.h> /* PIOS_USBHOOK_* */
|
||||||
#include <pios_usb_util.h> /* PIOS_USB_UTIL_AsciiToUtf8 */
|
#include <pios_usb_util.h> /* PIOS_USB_UTIL_AsciiToUtf8 */
|
||||||
|
|
||||||
static const uint8_t usb_product_id[20] = {
|
static const uint8_t usb_product_id[22] = {
|
||||||
sizeof(usb_product_id),
|
sizeof(usb_product_id),
|
||||||
USB_DESC_TYPE_STRING,
|
USB_DESC_TYPE_STRING,
|
||||||
'O', 0,
|
'O', 0,
|
||||||
@ -45,7 +45,7 @@ static const uint8_t usb_product_id[20] = {
|
|||||||
'M', 0,
|
'M', 0,
|
||||||
'i', 0,
|
'i', 0,
|
||||||
'n', 0,
|
'n', 0,
|
||||||
'i', 0,
|
'i', 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static uint8_t usb_serial_number[2 + PIOS_SYS_SERIAL_NUM_ASCII_LEN * 2 + (sizeof(PIOS_USB_BOARD_SN_SUFFIX) - 1) * 2] = {
|
static uint8_t usb_serial_number[2 + PIOS_SYS_SERIAL_NUM_ASCII_LEN * 2 + (sizeof(PIOS_USB_BOARD_SN_SUFFIX) - 1) * 2] = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user