summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-01 13:31:18 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-01 13:31:18 -0800
commit96091e8238fa7f28010196f9155fd3b116643680 (patch)
treeac1cf10ab44a51fe5f6a8e7cebfa30e4b139e321 /uemis-downloader.c
parent79c2b002124e3378de5df58da53b153d8518d295 (diff)
downloadsubsurface-96091e8238fa7f28010196f9155fd3b116643680.tar.gz
Fix stupid error in last minute cleanup of Uemis rewrite
Never make trivial changes without testing them. This was missung a '!' before the strcmp - so the wrong code got executed when trying to get the DeviceId and everything afterwards failed without a valid DeviceId. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index c80b1e929..fc5944cea 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -367,7 +367,7 @@ static gboolean uemis_get_answer(const char *path, char *request, int n_param_in
for (i = 0; i < n_param_in; i++)
str_append_with_delim(sb, param_buff[i]);
if (! strcmp(request, "getDivelogs") || ! strcmp(request, "getDeviceData") || ! strcmp(request, "getDirectory") ||
- ! strcmp(request, "getDivespot") || strcmp(request, "getDive")) {
+ ! strcmp(request, "getDivespot") || ! strcmp(request, "getDive")) {
answer_in_mbuf = TRUE;
str_append_with_delim(sb, "");
if (! strcmp(request, "getDivelogs"))