mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Shearwater import model name for Petrel and Predator
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
1aa6bd9904
commit
47a2e8b1d9
1 changed files with 12 additions and 0 deletions
|
@ -2723,6 +2723,12 @@ extern int shearwater_dive(void *param, int columns, char **data, char **column)
|
|||
utf8_string(data[9], &cur_settings.dc.serial_nr);
|
||||
if (data[10]) {
|
||||
switch (atoi(data[10])) {
|
||||
case 2:
|
||||
cur_settings.dc.model = strdup("Shearwater Petrel");
|
||||
break;
|
||||
case 4:
|
||||
cur_settings.dc.model = strdup("Shearwater Predator");
|
||||
break;
|
||||
default:
|
||||
cur_settings.dc.model = strdup("Shearwater import");
|
||||
break;
|
||||
|
@ -2736,6 +2742,12 @@ extern int shearwater_dive(void *param, int columns, char **data, char **column)
|
|||
|
||||
if (data[10]) {
|
||||
switch (atoi(data[10])) {
|
||||
case 2:
|
||||
cur_dive->dc.model = strdup("Shearwater Petrel");
|
||||
break;
|
||||
case 4:
|
||||
cur_dive->dc.model = strdup("Shearwater Predator");
|
||||
break;
|
||||
default:
|
||||
cur_dive->dc.model = strdup("Shearwater import");
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue