diff options
author | Oliver Schwaneberg <oliver.schwaneberg@gmail.com> | 2018-01-19 06:18:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-19 09:27:32 +0200 |
commit | af89698d6424f5996c88bde6407dee4df2dc7bc5 (patch) | |
tree | ff01b99ff1116f6e0ab824157c5ead85f9872614 /core/uemis-downloader.c | |
parent | 65caddb29492cf0321ac252f08da57933f507df1 (diff) | |
download | subsurface-af89698d6424f5996c88bde6407dee4df2dc7bc5.tar.gz |
Checking for ACK for getDive.
get_matching_dive does not check if the DC wrote an acknowledgement for the requested dive.
As result, the sync stalls if dive number 0 is not available.
Signed-off-by: Oliver Schwaneberg <oliver.schwaneberg@gmail.com>
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r-- | core/uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index b327f29e8..1587f9f5f 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -1210,7 +1210,7 @@ static bool get_matching_dive(int idx, char *newmax, int *uemis_mem_status, devi } else { uint32_t nr_found = 0; char *logfilenr = strstr(mbuf, "logfilenr"); - if (logfilenr) { + if (logfilenr && strstr(mbuf, "act{")) { sscanf(logfilenr, "logfilenr{int{%u", &nr_found); if (nr_found >= dive->dc.diveid || nr_found == 0) { found_above = true; |