1
0
Fork 0
mirror of https://github.com/subsurface/subsurface.git synced 2025-02-19 22:16:15 +00:00

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>
This commit is contained in:
Dirk Hohndel 2019-07-15 11:18:32 -07:00
parent ccf5a49f93
commit 3e5d60d95a

View file

@ -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);