diff options
| author | hathach <[email protected]> | 2019-05-03 13:44:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-03 13:44:50 +0700 |
| commit | a8d98d09ca18d3caa537262dcae639225fddb9f3 (patch) | |
| tree | 3e0920a5f9a88a07d0227483bccf372e95047769 /examples/device | |
| parent | 867e69ed9d1ef44a7574ccf6543c8a46ef8d8e6c (diff) | |
clean up
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/cdc_msc_hid/src/usb_descriptors.c | 2 | ||||
| -rw-r--r-- | examples/device/hid_generic_inout/hid_test.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/examples/device/cdc_msc_hid/src/usb_descriptors.c b/examples/device/cdc_msc_hid/src/usb_descriptors.c index 72d280c2f..ef3cc9cef 100644 --- a/examples/device/cdc_msc_hid/src/usb_descriptors.c +++ b/examples/device/cdc_msc_hid/src/usb_descriptors.c @@ -117,7 +117,7 @@ enum uint8_t const desc_configuration[] = { - // Inteface count, string index, total length, attribute, power in mA + // Interface count, string index, total length, attribute, power in mA TUD_CONFIG_DESCRIPTOR(ITF_NUM_TOTAL, 0, CONFIG_TOTAL_LEN, TUSB_DESC_CONFIG_ATT_REMOTE_WAKEUP, 100), #if CFG_TUD_CDC diff --git a/examples/device/hid_generic_inout/hid_test.py b/examples/device/hid_generic_inout/hid_test.py index b6799687d..c89d89062 100644 --- a/examples/device/hid_generic_inout/hid_test.py +++ b/examples/device/hid_generic_inout/hid_test.py @@ -3,7 +3,9 @@ import hid USB_VID = 0xcafe -for dict in hid.enumerate(0xcafe): +print("Openning HID device with VID = 0x%X" % USB_VID) + +for dict in hid.enumerate(USB_VID): print(dict) dev = hid.Device(dict['vendor_id'], dict['product_id']) if dev: |
