mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
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>
This commit is contained in:
parent
4e64b327f3
commit
30f81949a0
1 changed files with 1 additions and 1 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue