summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-07-13 14:05:11 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-07-14 09:12:31 -0700
commita4295a3e9f87b5eb38c1de8637ace7f1a2210030 (patch)
tree6bc46b401008f09afb99fe02d99957c1ed16b439 /core/btdiscovery.cpp
parent693aeadf3c4923358f6ce490dc1e3731dbfd690f (diff)
downloadsubsurface-a4295a3e9f87b5eb38c1de8637ace7f1a2210030.tar.gz
core/BLE: add detection of Scubapro Aladin A1
This was supported in libdivecomputer, but not recognized as dive computer by our core BLE code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r--core/btdiscovery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp
index a90c83520..bf068c922 100644
--- a/core/btdiscovery.cpp
+++ b/core/btdiscovery.cpp
@@ -58,11 +58,12 @@ static dc_descriptor_t *getDeviceType(QString btName)
} else if (btName.startsWith("Suunto D5")) {
vendor = "Suunto";
product = "D5";
- } else if (btName.startsWith("G2") || btName.startsWith("Aladin") || btName.startsWith("HUD")) {
+ } else if (btName.startsWith("G2") || btName.startsWith("Aladin") || btName.startsWith("HUD") || btName.startsWith("A1")) {
vendor = "Scubapro";
if (btName.startsWith("G2")) product = "G2";
if (btName.startsWith("HUD")) product = "G2 HUD";
if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix";
+ if (btName.startsWith("A1")) product = "Aladin A1";
} else if (btName.startsWith("Mares")) {
vendor = "Mares";
// we don't know which of the dive computers it is,