diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-11-05 11:47:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-06 14:05:26 -0800 |
commit | cfc05f2a058bfb1f23ba36a9219eb3f31cc397aa (patch) | |
tree | 360ef05907e74ad97de5d14752d3f054ccaf6bc0 /core/btdiscovery.cpp | |
parent | 20922e261a0f1ecb9b50a0717cbfef0a213c6d04 (diff) | |
download | subsurface-cfc05f2a058bfb1f23ba36a9219eb3f31cc397aa.tar.gz |
Add "Aladin" to the list of recognized BT names.
Recognize Aladin as the Bluetooth name of the Scubapro Aladin Sport
Matrix. Note that the Scubapro Aladin H Matrix most likely also
identifies itself using this BT name. But it probably uses the same
BT protocol (i.e. the G2 protocol) and therefore this should not pose
a problem. Ultimately a common name should be found.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/btdiscovery.cpp')
-rw-r--r-- | core/btdiscovery.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index ffa2a26f0..b764098ef 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -40,9 +40,10 @@ static dc_descriptor_t *getDeviceType(QString btName) product = "EON Steel"; } - if (btName.startsWith("G2")) { + if (btName.startsWith("G2") || btName.startsWith("Aladin")) { vendor = "Scubapro"; - product = "G2"; + if (btName.startsWith("G2")) product = "G2"; + if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix"; } if (!vendor.isEmpty() && !product.isEmpty()) |