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:
Dirk Hohndel 2018-10-12 10:10:03 -07:00
parent 1491616dcf
commit 7697003498

View file

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