diff options
Diffstat (limited to 'subsurface-core/libdivecomputer.c')
-rw-r--r-- | subsurface-core/libdivecomputer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/libdivecomputer.c b/subsurface-core/libdivecomputer.c index ca8378379..8ed29edd7 100644 --- a/subsurface-core/libdivecomputer.c +++ b/subsurface-core/libdivecomputer.c @@ -695,7 +695,7 @@ static int dive_cb(const unsigned char *data, unsigned int size, dc_parser_destroy(parser); /* Various libdivecomputer interface fixups */ - if (first_temp_is_air && dive->dc.samples) { + if (dive->dc.airtemp.mkelvin == 0 && first_temp_is_air && dive->dc.samples) { dive->dc.airtemp = dive->dc.sample[0].temperature; dive->dc.sample[0].temperature.mkelvin = 0; } |