diff options
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parse-xml.c b/parse-xml.c index cef5221db..d1985657d 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1327,7 +1327,7 @@ static void sample_start(void) cur_sample->stoptime.seconds = laststoptime; cur_sample->stopdepth.mm = laststopdepth; cur_sample->cns = lastcns; - cur_sample->po2 = lastpo2; + cur_sample->po2.mbar = lastpo2; cur_sample->sensor = lastsensor; } @@ -1342,7 +1342,7 @@ static void sample_end(void) laststoptime = cur_sample->stoptime.seconds; laststopdepth = cur_sample->stopdepth.mm; lastcns = cur_sample->cns; - lastpo2 = cur_sample->po2; + lastpo2 = cur_sample->po2.mbar; cur_sample = NULL; } @@ -1929,7 +1929,7 @@ extern int shearwater_profile_sample(void *handle, int columns, char **data, cha if (data[2]) cur_sample->temperature.mkelvin = metric ? C_to_mkelvin(atof(data[2])) : F_to_mkelvin(atof(data[2])); if (data[3]) - cur_sample->po2 = atof(data[3]) * 1000; + cur_sample->po2.mbar = atof(data[3]) * 1000; if (data[4]) cur_sample->ndl.seconds = atoi(data[4]) * 60; if (data[5]) |