diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-12-20 19:03:09 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-01-22 12:57:13 +1300 |
commit | f7a4327cd479a873df91a0df3190166b3aefcfc7 (patch) | |
tree | 778ccb8e26715801550b894f5f244c891e724c37 | |
parent | cfc4fca6ad0ca298fd284d0e0403a464a1bb6820 (diff) | |
download | subsurface-f7a4327cd479a873df91a0df3190166b3aefcfc7.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>
-rw-r--r-- | core/btdiscovery.cpp | 5 |
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); |