From 3e5d60d95a7cf4f45722dfbf61c09fde0da855cb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 15 Jul 2019 11:18:32 -0700 Subject: [PATCH] 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 --- core/btdiscovery.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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);