summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index 70be23f48..a78f53c27 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -556,10 +556,10 @@ static int dive_cb(const unsigned char *data, unsigned int size,
case DC_DIVEMODE_FREEDIVE:
case DC_DIVEMODE_GAUGE:
case DC_DIVEMODE_OC: /* Open circuit */
- dive->dc.dctype = OC;
+ dive->dc.divemode = OC;
break;
case DC_DIVEMODE_CC: /* Closed circuit */
- dive->dc.dctype = CCR;
+ dive->dc.divemode = CCR;
break;
}
#endif