summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-27 16:13:29 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-27 06:34:18 -0700
commit3ef5dbaacb6be129f3d4e7b72fcf86b95e5c8fa4 (patch)
tree6dacce702442cd9fceba1413f336eeb244d26e82 /file.c
parent02488ba9df26eec8e5ec4dbd352880bf6b16c416 (diff)
downloadsubsurface-3ef5dbaacb6be129f3d4e7b72fcf86b95e5c8fa4.tar.gz
Add hw info to Seabear import
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/file.c b/file.c
index f7f98333f..cd3cb3439 100644
--- a/file.c
+++ b/file.c
@@ -950,8 +950,8 @@ int parse_csv_file(const char *filename, int timef, int depthf, int tempf, int p
return ret;
}
-#define SBPARAMS 38
-int parse_seabear_csv_file(const char *filename, int timef, int depthf, int tempf, int po2f, int o2sensor1f, int o2sensor2f, int o2sensor3f, int cnsf, int ndlf, int ttsf, int stopdepthf, int pressuref, int sepidx, const char *csvtemplate, int unitidx, const char *delta)
+#define SBPARAMS 40
+int parse_seabear_csv_file(const char *filename, int timef, int depthf, int tempf, int po2f, int o2sensor1f, int o2sensor2f, int o2sensor3f, int cnsf, int ndlf, int ttsf, int stopdepthf, int pressuref, int sepidx, const char *csvtemplate, int unitidx, const char *delta, const char *hw)
{
int ret, i, pnr;
struct memblock mem;
@@ -1043,6 +1043,10 @@ int parse_seabear_csv_file(const char *filename, int timef, int depthf, int temp
snprintf(deltabuf, MAXCOLDIGITS, "%s", delta);
params[pnr++] = "delta";
params[pnr++] = strdup(deltabuf);
+ if (strlen(hw)) {
+ params[pnr++] = "hw";
+ params[pnr++] = strdup(hw);
+ }
params[pnr++] = NULL;
/* Move the CSV data to the start of mem buffer */