Hmm, no luck I'm afraid.
In usbd_cdc_hid.c it turns out the 2 you see if actually the USB version number. I just added comments to it:
usbd_cdc_hid.c
2
/* USB Standard Device Descriptor */ __ALIGN_BEGIN static const uint8_t USBD_CDC_HID_DeviceQualifierDesc[USB_LEN_DEV_QUALIFIER_DESC] __ALIGN_END = { USB_LEN_DEV_QUALIFIER_DESC, // bLength USB_DESC_TYPE_DEVICE_QUALIFIER,// bDescriptorType 0x00, // bcdUSB lo 0x02, // bcdUSB hi 0x00, // bDeviceClass 0x00, // bDeviceSubClass 0x00, // bDeviceProtocol 0x40, // bMaxPacketSize0 0x01, // bNumConfigurations 0x00, // bReserved };
But usb_desc.c did have the problem. Sadly that didn't help matters though :(
usb_desc.c
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hmm, no luck I'm afraid.
In
usbd_cdc_hid.c
it turns out the2
you see if actually the USB version number. I just added comments to it:But
usb_desc.c
did have the problem. Sadly that didn't help matters though :(