BLE: add EON Core and Mares Bluelink to detection
Detection isn't required, but it makes things easier. For the Mares dive computers we only see the Bluelink, so we can't tell which dive computer is connected to it. We guess "Quad", but the user can pick a different one. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e6cb98ea4b
commit
cef6dff762
@ -40,12 +40,24 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
||||
product = "EON Steel";
|
||||
}
|
||||
|
||||
if (btName.startsWith("EON Core")) {
|
||||
vendor = "Suunto";
|
||||
product = "EON Core";
|
||||
}
|
||||
|
||||
if (btName.startsWith("G2") || btName.startsWith("Aladin")) {
|
||||
vendor = "Scubapro";
|
||||
if (btName.startsWith("G2")) product = "G2";
|
||||
if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix";
|
||||
}
|
||||
|
||||
if (btName == "Mares bluelink pro") {
|
||||
vendor = "Mares";
|
||||
// we don't know which of the dive computers it is,
|
||||
// so let's just randomly pick one
|
||||
product = "Quad";
|
||||
}
|
||||
|
||||
if (!vendor.isEmpty() && !product.isEmpty())
|
||||
return descriptorLookup.value(vendor + product);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user