[PATCH] Fix Uemis Zurich downloads

Linus Torvalds torvalds at linux-foundation.org
Wed Jun 26 23:35:57 PDT 2013


From: Linus Torvalds <torvalds at linux-foundation.org>
Date: Wed, 26 Jun 2013 20:31:46 -1000
Subject: [PATCH] Fix Uemis Zurich downloads

Commit 48ba01b807cc ("Enable downloads from the UEMIS Zurich")
mistakenly switched the meaning of the "force_download" argument when it
moved from "struct argument_block" to being a direct argument.

This fixes it right back.

Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
---

With this and the previous patch, I could do all my last day of diving 
using the Qt branch.

Still wishing for multi-dive editing and better UI for the equipment 
editing, but at least it all _worked_.

 uemis-downloader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uemis-downloader.c b/uemis-downloader.c
index ace806f68afc..9864cfe66e71 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -793,7 +793,7 @@ char *do_uemis_import(const char *mountpath, short force_download)
 	param_buff[1] = "notempty";
 	/* if we have an empty divelist or force it, then we start downloading from the
 	 * first dive on the Uemis; otherwise check which was the last dive downloaded */
-	if (force_download && dive_table.nr > 0)
+	if (!force_download && dive_table.nr > 0)
 		newmax = uemis_get_divenr(deviceid);
 	else
 		newmax = strdup("0");
-- 
1.8.3



More information about the subsurface mailing list