From 394948e2cf39c44618dce16a288905bab581c611 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 26 Oct 2019 06:27:08 -0400 Subject: Mares: improve BT discovery logic At least in one of the logs we saw there seemed to be trailing spaces. It should be enough for the BT name to start with "Mares Genius" in order to be recognized. Suggested-by: Jef Driesen Signed-off-by: Dirk Hohndel --- core/btdiscovery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/btdiscovery.cpp b/core/btdiscovery.cpp index 36c1b4b9c..80e2285b8 100644 --- a/core/btdiscovery.cpp +++ b/core/btdiscovery.cpp @@ -77,7 +77,7 @@ static dc_descriptor_t *getDeviceType(QString btName) // so let's just randomly pick one product = "Quad"; // Some we can pick out directly - if (btName == "Mares Genius") + if (btName.startsWith("Mares Genius")) product = "Genius"; } -- cgit v1.2.3-70-g09d2