summaryrefslogtreecommitdiff
path: root/firmware/bluetooth_rxtx
diff options
context:
space:
mode:
authorDominic Spill <dominicgs@gmail.com>2017-02-06 16:53:11 -0700
committerDominic Spill <dominicgs@gmail.com>2017-02-06 16:53:11 -0700
commit3cf98b146adf2a85007e632b37b51d0b6dbb1359 (patch)
tree001a328ec6b08dc3469aa426dc63e984e217339c /firmware/bluetooth_rxtx
parent3612176b93eddd9cf70399a9d30144c52eeb686a (diff)
Move UBertooth USB API check to bcdUSB
Diffstat (limited to 'firmware/bluetooth_rxtx')
-rw-r--r--firmware/bluetooth_rxtx/bluetooth_rxtx.c6
-rw-r--r--firmware/bluetooth_rxtx/ubertooth_usb.c4
2 files changed, 2 insertions, 8 deletions
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