diff options
author | tmk <nobody@nowhere> | 2011-12-22 01:05:28 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2011-12-22 01:05:28 +0900 |
commit | 7386c761912530bbb53496002ab32d02c8a86833 (patch) | |
tree | d974c9f82f4db2434ac26357f4f3e38a2d4f6777 /pjrc | |
parent | baf885dc31e1d4ac98e03870dffea6e19c259427 (diff) |
fixed a bug on host_system_send().
Diffstat (limited to 'pjrc')
-rw-r--r-- | pjrc/usb.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pjrc/usb.c b/pjrc/usb.c index 9989a4b2d9..20afc1b883 100644 --- a/pjrc/usb.c +++ b/pjrc/usb.c @@ -66,6 +66,10 @@ # define PRODUCT_ID 0xBABE #endif +#ifndef DEVICE_VER +# define DEVICE_VER 0x0100 +#endif + // USB devices are supposed to implment a halt feature, which is // rarely (if ever) used. If you comment this line out, the halt @@ -134,7 +138,7 @@ static uint8_t PROGMEM device_descriptor[] = { ENDPOINT0_SIZE, // bMaxPacketSize0 LSB(VENDOR_ID), MSB(VENDOR_ID), // idVendor LSB(PRODUCT_ID), MSB(PRODUCT_ID), // idProduct - 0x00, 0x01, // bcdDevice + LSB(DEVICE_VER), MSB(DEVICE_VER), // bcdDevice 1, // iManufacturer 2, // iProduct 0, // iSerialNumber |