From cfc05f2a058bfb1f23ba36a9219eb3f31cc397aa Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 5 Nov 2017 11:47:36 +0100 Subject: Add "Aladin" to the list of recognized BT names. Recognize Aladin as the Bluetooth name of the Scubapro Aladin Sport Matrix. Note that the Scubapro Aladin H Matrix most likely also identifies itself using this BT name. But it probably uses the same BT protocol (i.e. the G2 protocol) and therefore this should not pose a problem. Ultimately a common name should be found. Signed-off-by: Berthold Stoeger --- core/btdiscovery.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index ffa2a26f0..b764098ef 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -40,9 +40,10 @@ static dc_descriptor_t *getDeviceType(QString btName) product = "EON Steel"; } - if (btName.startsWith("G2")) { + if (btName.startsWith("G2") || btName.startsWith("Aladin")) { vendor = "Scubapro"; - product = "G2"; + if (btName.startsWith("G2")) product = "G2"; + if (btName.startsWith("Aladin")) product = "Aladin Sport Matrix"; } if (!vendor.isEmpty() && !product.isEmpty()) -- cgit v1.2.3-70-g09d2