diff options
Diffstat (limited to 'core/save-git.c')
-rw-r--r-- | core/save-git.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/save-git.c b/core/save-git.c index b13921c60..a5f6f0dde 100644 --- a/core/save-git.c +++ b/core/save-git.c @@ -425,10 +425,13 @@ static void save_dc(struct membuffer *b, struct dive *dive, struct divecomputer */ static void create_dive_buffer(struct dive *dive, struct membuffer *b) { + pressure_t surface_pressure = un_fixup_surface_pressure(dive); if (dive->dc.duration.seconds > 0) put_format(b, "duration %u:%02u min\n", FRACTION(dive->dc.duration.seconds, 60)); SAVE("rating", rating); SAVE("visibility", visibility); + if (surface_pressure.mbar) + SAVE("airpressure", surface_pressure.mbar); cond_put_format(dive->notrip, b, "notrip\n"); save_tags(b, dive->tag_list); if (dive->dive_site) |