diff options
-rw-r--r-- | core/dive.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/dive.c b/core/dive.c index 5391f3df9..c85b869a3 100644 --- a/core/dive.c +++ b/core/dive.c @@ -1747,6 +1747,9 @@ static void merge_one_sample(struct sample *sample, int time, struct divecompute struct sample *prev = dc->sample + last; int last_time = prev->time.seconds; int last_depth = prev->depth.mm; + /* Init a few values from prev sample to avoid useless info in XML */ + surface.bearing.degrees = prev->bearing.degrees; + surface.ndl.seconds = prev->ndl.seconds; /* * Only do surface events if the samples are more than |