summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-25 20:15:39 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-25 20:15:39 -0700
commitb8a4730661be478d890aa3bc327d8af76ef4b86b (patch)
tree291599cd22c1c6b02308f1bd8fb7956e2cbf170a /uemis.c
parentd5ac38d9edce323a46cb1b757e479cce5379675a (diff)
downloadsubsurface-b8a4730661be478d890aa3bc327d8af76ef4b86b.tar.gz
Expand Uemis Zurich download support
With this commit we not only use the getDivelogs command but also the getDive command for each of the dives that was downloaded. Oddly, that makes quite a bit of redundant (and at times slightly contradictory) data available, but also many new things. We now get weight, suit and notes that were stored with a dive in the logbook on the divecomputer. There are a ton more data available that we don't use, yet. For example information about altitude, a decoindex, dive type and dive activity, other equipment information, etc. I still need to decide how much of this I want to make available in Subsurface (and how I want to present this - after all most of this is not available from other dive computers). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis.c')
-rw-r--r--uemis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis.c b/uemis.c
index d4c166b88..237fd6c16 100644
--- a/uemis.c
+++ b/uemis.c
@@ -43,7 +43,7 @@ static void decodeblock( unsigned char in[4], unsigned char out[3] ) {
/*
* decode a base64 encoded stream discarding padding, line breaks and noise
*/
-static void decode( uint8_t *inbuf, uint8_t *outbuf, int inbuf_len ) {
+void decode( uint8_t *inbuf, uint8_t *outbuf, int inbuf_len ) {
uint8_t in[4], out[3], v;
int i,len,indx_in=0,indx_out=0;