From 3cf98b146adf2a85007e632b37b51d0b6dbb1359 Mon Sep 17 00:00:00 2001 From: Dominic Spill Date: Mon, 6 Feb 2017 16:53:11 -0700 Subject: Move UBertooth USB API check to bcdUSB --- firmware/bluetooth_rxtx/bluetooth_rxtx.c | 6 ------ firmware/bluetooth_rxtx/ubertooth_usb.c | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'firmware/bluetooth_rxtx') diff --git a/firmware/bluetooth_rxtx/bluetooth_rxtx.c b/firmware/bluetooth_rxtx/bluetooth_rxtx.c index 97ae521..cc15d3f 100644 --- a/firmware/bluetooth_rxtx/bluetooth_rxtx.c +++ b/firmware/bluetooth_rxtx/bluetooth_rxtx.c @@ -668,12 +668,6 @@ static int vendor_request_handler(uint8_t request, uint16_t* request_params, uin ego_mode = request_params[0]; break; - case UBERTOOTH_GET_API_VERSION: - for (int i = 0; i < 4; ++i) - data[i] = (UBERTOOTH_API_VERSION >> (8*i)) & 0xff; - *data_len = 4; - break; - default: return 0; } diff --git a/firmware/bluetooth_rxtx/ubertooth_usb.c b/firmware/bluetooth_rxtx/ubertooth_usb.c index 47f6d83..afe7184 100644 --- a/firmware/bluetooth_rxtx/ubertooth_usb.c +++ b/firmware/bluetooth_rxtx/ubertooth_usb.c @@ -90,8 +90,8 @@ static u8 abDescriptors[] = { 0x00, // bDeviceProtocol MAX_PACKET_SIZE0, // bMaxPacketSize LE_WORD(ID_VENDOR), // idVendor - LE_WORD(ID_PRODUCT), // idProduct - LE_WORD(0x0101), // bcdDevice + LE_WORD(ID_PRODUCT), // idProduct + LE_WORD(0x0102), // bcdDevice 0x01, // iManufacturer 0x02, // iProduct 0x03, // iSerialNumber -- cgit v1.2.3