From 769700349845678b049c830eb2d1ca8c42004b68 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 12 Oct 2018 10:10:03 -0700 Subject: core: recognize Aqualung i770R over BLE The name seems crazy until you realize that FQ is 0x4651 which is the model number of the i770R. And the six digits are the serial number of the device. Still crazy, but at least now you understand WHY. Thanks to Jef for decoding that. Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 258f16e2c..6ec4bba7f 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -69,6 +69,11 @@ static dc_descriptor_t *getDeviceType(QString btName) product = "Quad"; } + if (btName.contains(QRegularExpression("^FQ\\d{6}$"))) { + vendor = "Aqualung"; + product = "i770R"; + } + if (!vendor.isEmpty() && !product.isEmpty()) return descriptorLookup.value(vendor + product); -- cgit v1.2.3-70-g09d2