mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
core: add new Shearwater dive computer names
The code works ok falling back to just Perdix and Petrel 2, but it looks confusing to the user to see an incorrect name in the connection drop down. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e41d877e53
commit
eb1284683a
1 changed files with 4 additions and 0 deletions
|
@ -43,9 +43,13 @@ struct namePattern {
|
|||
const char *vendor;
|
||||
const char *product;
|
||||
};
|
||||
// search is in order of this array, and as a prefix search, so more specific names
|
||||
// should be added before less specific names (i.e. "Perdix 2" before "Perdix")
|
||||
static struct namePattern name[] = {
|
||||
// Shearwater dive computers
|
||||
{ "Predator", "Shearwater", "Predator" },
|
||||
{ "Perdix 2", "Shearwater", "Perdix 2"},
|
||||
{ "Petrel 3", "Shearwater", "Petrel 3"},
|
||||
// both the Petrel and Petrel 2 identify as "Petrel" as BT/BLE device
|
||||
// but only the Petrel 2 is listed as available dive computer on iOS (which requires BLE support)
|
||||
// so always pick the "Petrel 2" as product when seeing a Petrel
|
||||
|
|
Loading…
Reference in a new issue