diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2015-07-27 16:13:29 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-27 06:34:18 -0700 |
commit | 3ef5dbaacb6be129f3d4e7b72fcf86b95e5c8fa4 (patch) | |
tree | 6dacce702442cd9fceba1413f336eeb244d26e82 /file.c | |
parent | 02488ba9df26eec8e5ec4dbd352880bf6b16c416 (diff) | |
download | subsurface-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 */ |