aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-12 10:10:03 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-12 10:10:06 -0700
commit769700349845678b049c830eb2d1ca8c42004b68 (patch)
tree0cc112d911e12168a2ca8d5655a7ff0a073075a9
parent1491616dcf026a53430c8f6895ff27c4a53344d4 (diff)
downloadsubsurface-769700349845678b049c830eb2d1ca8c42004b68.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--core/btdiscovery.cpp5
1 files changed, 5 insertions, 0 deletions
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);