summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-20 19:03:09 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-21 12:41:43 -0800
commit6ba1cf8cf78bc52cac45f3588801e916f7753fb2 (patch)
tree149285b25e4e9fbdbaf29e9f375f08fb01803911 /core/btdiscovery.cpp
parent10a0393b1bf96821a1ab72be4ed64965e353d2c0 (diff)
downloadsubsurface-6ba1cf8cf78bc52cac45f3588801e916f7753fb2.tar.gz
core: recognize Oceanic Pro Plus X over BLE
Just like with the Aqualung i770R in 7697003498 this name follows the pattern of a model number in ASCII encoding, followed by the serial number of the device. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 6ec4bba7f..207dfacf8 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -74,6 +74,11 @@ static dc_descriptor_t *getDeviceType(QString btName)
product = "i770R";
}
+ if (btName.contains(QRegularExpression("^ER\\d{6}$"))) {
+ vendor = "Oceanic";
+ product = "Pro Plus X";
+ }
+
if (!vendor.isEmpty() && !product.isEmpty())
return descriptorLookup.value(vendor + product);