diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2016-05-28 09:37:40 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-05-28 14:23:10 -0700 |
commit | 47a2e8b1d9bdd71b1b45036c533ba108d35b1eab (patch) | |
tree | f4e83643cfb3a1a4fa1ec740190e7c56ea5fde84 /core/parse-xml.c | |
parent | 1aa6bd9904f48ab08cf39dff66d81839f17b9f75 (diff) | |
download | subsurface-47a2e8b1d9bdd71b1b45036c533ba108d35b1eab.tar.gz |
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>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r-- | core/parse-xml.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index e22881b0f..87e2e6acd 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -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; |