diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2019-07-15 11:18:32 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-07-15 11:18:32 -0700 |
commit | 3e5d60d95a7cf4f45722dfbf61c09fde0da855cb (patch) | |
tree | 1ba99721d70cb5ab5c04e562f1f8c2447af22238 /core/btdiscovery.cpp | |
parent | ccf5a49f93f8c08b58ec0f4ed190d402bcd8f3c8 (diff) | |
download | subsurface-3e5d60d95a7cf4f45722dfbf61c09fde0da855cb.tar.gz |
Bluetooth: recognize Ratio iX3m GPS dive computers
We cannot tell them apart by Bluetooth name, so pick one of the names.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.cpp')
-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 d945dcf21..0af809c6d 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -90,6 +90,11 @@ static dc_descriptor_t *getDeviceType(QString btName) product = "Geo 4.0"; } + if (btName.contains(QRegularExpression("^DS\\d{6}"))) { + vendor = "Ratio"; + product = "iX3M GPS Easy"; // we don't know which of the GPS models, so set one + } + if (!vendor.isEmpty() && !product.isEmpty()) return descriptorLookup.value(vendor + product); |