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:
parent
ccf5a49f93
commit
3e5d60d95a
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue