mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <jef@libdivecomputer.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d4ce793540
commit
394948e2cf
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue