diff options
author | glerch <guido.lerch@gmail.com> | 2015-09-10 21:23:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-11 09:21:59 -0700 |
commit | 4e64b327f3aaa3ccb2093a10ccbebbd9520087cc (patch) | |
tree | b9a5299928447cbe9b857905ec61ace20fdcb323 /uemis-downloader.c | |
parent | 654a7be834189ced04c26904026c2710438b23df (diff) | |
download | subsurface-4e64b327f3aaa3ccb2093a10ccbebbd9520087cc.tar.gz |
Uemis downloader: cleaning up debug bits
At some point I would like to understand the logic behind
the debug bits, so I am not messing around with them.
Signed-off-by: glerch <guido.lerch@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r-- | uemis-downloader.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 916e4ff0a..49223a52e 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -1029,7 +1029,7 @@ static bool load_uemis_divespot(const char *mountpath, int divespot_id) #endif bool success = uemis_get_answer(mountpath, "getDivespot", 3, 0, NULL); if (mbuf && success) { -#if UEMIS_DEBUG & 2 +#if UEMIS_DEBUG & 16 do_dump_buffer_to_file(mbuf, "Spot", round); #endif return parse_divespot(mbuf); @@ -1043,7 +1043,6 @@ const char *do_uemis_import(device_data_t *data) short force_download = data->force_download; char *newmax = NULL; int first, start, end = -2; - int i = 0; uint32_t deviceidnr; //char objectid[10]; char *deviceid = NULL; @@ -1117,7 +1116,7 @@ const char *do_uemis_import(device_data_t *data) success = uemis_get_answer(mountpath, "getDivelogs", 3, 0, &result); uemis_mem_status = get_memory(data->download_table); if (success && mbuf && uemis_mem_status != UEMIS_MEM_FULL) { -#if UEMIS_DEBUG % 2 +#if UEMIS_DEBUG & 16 do_dump_buffer_to_file(mbuf, "Divelogs", round); #endif /* process the buffer we have assembled */ @@ -1163,7 +1162,7 @@ const char *do_uemis_import(device_data_t *data) snprintf(dive_to_read_buf, sizeof(dive_to_read_buf), "%d", dive_to_read); param_buff[2] = dive_to_read_buf; success = uemis_get_answer(mountpath, "getDive", 3, 0, &result); -#if UEMIS_DEBUG % 2 +#if UEMIS_DEBUG & 16 do_dump_buffer_to_file(mbuf, "Dive", round); #endif uemis_mem_status = get_memory(data->download_table); |