summaryrefslogtreecommitdiffstats
path: root/libdivecomputer.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-09 14:44:38 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-09 15:06:25 -0800
commit7357633905cf3bb33a99f7c0b54d214f49373411 (patch)
tree8edcba679c45b6275e321e8033979710cea37031 /libdivecomputer.c
parente43ea018fa2faecfc6ebb5a7831bafbfefca183d (diff)
downloadsubsurface-7357633905cf3bb33a99f7c0b54d214f49373411.tar.gz
Now use our table when downloading from the dive computer
We pass a different table to libdivecomputer (and the uemis code) and have that table filled. And then we simply copy the dives from that table into the real dive_table when the user accepts the download. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'libdivecomputer.c')
-rw-r--r--libdivecomputer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdivecomputer.c b/libdivecomputer.c
index d55cadf37..70be23f48 100644
--- a/libdivecomputer.c
+++ b/libdivecomputer.c
@@ -597,7 +597,7 @@ static int dive_cb(const unsigned char *data, unsigned int size,
}
dive->downloaded = true;
- record_dive(dive);
+ record_dive_to_table(dive, devdata->download_table);
mark_divelist_changed(true);
return true;