mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 22:23:24 +00:00
core: recognize Aqualung i770R over BLE
The name seems crazy until you realize that FQ is 0x4651 which is the model number of the i770R. And the six digits are the serial number of the device. Still crazy, but at least now you understand WHY. Thanks to Jef for decoding that. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1491616dcf
commit
7697003498
1 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,11 @@ static dc_descriptor_t *getDeviceType(QString btName)
|
|||
product = "Quad";
|
||||
}
|
||||
|
||||
if (btName.contains(QRegularExpression("^FQ\\d{6}$"))) {
|
||||
vendor = "Aqualung";
|
||||
product = "i770R";
|
||||
}
|
||||
|
||||
if (!vendor.isEmpty() && !product.isEmpty())
|
||||
return descriptorLookup.value(vendor + product);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue