core/BLE: add detection of Scubapro Aladin A1

This was supported in libdivecomputer, but not recognized as dive computer by
our core BLE code.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-07-13 14:05:11 -07:00
parent 693aeadf3c
commit a4295a3e9f

View file

@ -58,11 +58,12 @@ static dc_descriptor_t *getDeviceType(QString btName)
} else if (btName.startsWith("Suunto D5")) {
vendor = "Suunto";
product = "D5";
} else if (btName.startsWith("G2") || btName.startsWith("Aladin") || btName.startsWith("HUD")) {
} else if (btName.startsWith("G2") || btName.startsWith("Aladin") || btName.startsWith("HUD") || btName.startsWith("A1")) {
vendor = "Scubapro";
if (btName.startsWith("G2")) product = "G2";
if (btName.startsWith("HUD")) product = "G2 HUD";
if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix";
if (btName.startsWith("A1")) product = "Aladin A1";
} else if (btName.startsWith("Mares")) {
vendor = "Mares";
// we don't know which of the dive computers it is,