From 98953831cd26eb62aba4e9e4691d9194c9924caa Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 26 Jun 2013 20:31:46 -1000 Subject: 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 Signed-off-by: Dirk Hohndel --- uemis-downloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uemis-downloader.c b/uemis-downloader.c index ace806f68..9864cfe66 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"); -- cgit v1.2.3-70-g09d2