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
@ -90,6 +90,11 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
|||||||
product = "Geo 4.0";
|
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())
|
if (!vendor.isEmpty() && !product.isEmpty())
|
||||||
return descriptorLookup.value(vendor + product);
|
return descriptorLookup.value(vendor + product);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user