diff options
Diffstat (limited to 'core/liquivision.c')
-rw-r--r-- | core/liquivision.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/liquivision.c b/core/liquivision.c index e4e5c5f80..3406bd3ab 100644 --- a/core/liquivision.c +++ b/core/liquivision.c @@ -335,7 +335,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int sample->depth.mm = array_uint16_le(ds + (d - 1) * 2) * 10; // cm->mm sample->temperature.mkelvin = C_to_mkelvin((float) array_uint16_le(ts + (d - 1) * 2) / 10); // dC->mK sample->sensor = event.pressure.sensor; - sample->cylinderpressure.mbar = event.pressure.mbar; + sample->pressure[0].mbar = event.pressure.mbar; finish_sample(dc); break; @@ -353,7 +353,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int sample->depth.mm = depth_mm; sample->temperature.mkelvin = temp_mk; sample->sensor = event.pressure.sensor; - sample->cylinderpressure.mbar = event.pressure.mbar; + sample->pressure[0].mbar = event.pressure.mbar; finish_sample(dc); d++; @@ -361,7 +361,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int } else { // Event is prior to sample sample->time.seconds = event.time; sample->sensor = event.pressure.sensor; - sample->cylinderpressure.mbar = event.pressure.mbar; + sample->pressure[0].mbar = event.pressure.mbar; if (last_time == sample_time) { sample->depth.mm = depth_mm; sample->temperature.mkelvin = temp_mk; |