summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2019-08-17 15:17:50 -0700
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2019-08-18 23:28:48 +0300
commit25db28b905c96378d6e046eea6e57079b3d401d8 (patch)
tree315a555c420586d313d6f734ee84af4953d9ce0d /core
parent14dd93b655b22ca17cfb041529ae84e91eca4a75 (diff)
downloadsubsurface-25db28b905c96378d6e046eea6e57079b3d401d8.tar.gz
Add BLE name recognition for the Deepblu Cosmiq+
It needs a newer version of libdivecomputer to actually download, but early very experimental code exists in the Subsurface-NG branch. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core')
-rw-r--r--core/btdiscovery.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index 2a3eff580..175ecf932 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -98,6 +98,11 @@ static dc_descriptor_t *getDeviceType(QString btName)
product = "iX3M GPS Easy"; // we don't know which of the GPS models, so set one
}
+ if (btName == "COSMIQ") {
+ vendor = "Deepblu";
+ product = "Cosmiq+";
+ }
+
if (!vendor.isEmpty() && !product.isEmpty())
return descriptorLookup.value(vendor + product);