diff options
author | glerch <guido.lerch@gmail.com> | 2015-09-11 08:32:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-11 10:29:49 -0700 |
commit | 30f81949a09942c4518dd663f809aabb1e901cc6 (patch) | |
tree | 7e7c86d17987a37db30c3fe418f49446a05800cb /uemis-downloader.c | |
parent | 4e64b327f3aaa3ccb2093a10ccbebbd9520087cc (diff) | |
download | subsurface-30f81949a09942c4518dd663f809aabb1e901cc6.tar.gz |
Uemis downloader: code optimization
Cleaned up the code in do_uemis_import, this way it should
run a little faster as I am doing the check if the returned
divespot is valid at an earlier point
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c index 49223a52e..9db2f33be 100644 --- a/uemis-downloader.c +++ b/uemis-downloader.c @@ -1178,8 +1178,8 @@ const char *do_uemis_import(device_data_t *data) /* we found the logfilenr that matches our object_id from the divelog we were looking for * we mark the search sucessfull even if the dive has been deleted. */ found = true; - process_raw_buffer(data, deviceidnr, mbuf, &newmax, false, NULL); if (strstr(mbuf, "deleted{bool{true") == NULL) { + process_raw_buffer(data, deviceidnr, mbuf, &newmax, false, NULL); /* remember the last log file number as it is very likely that subsequent dives * have the same or higher logfile number. * UEMIS unfortunately deletes dives by deleting the dive details and not the logs. */ |