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>
This commit is contained in:
Dirk Hohndel 2012-12-01 13:31:18 -08:00
parent 79c2b00212
commit 96091e8238

View file

@ -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++) for (i = 0; i < n_param_in; i++)
str_append_with_delim(sb, param_buff[i]); str_append_with_delim(sb, param_buff[i]);
if (! strcmp(request, "getDivelogs") || ! strcmp(request, "getDeviceData") || ! strcmp(request, "getDirectory") || 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; answer_in_mbuf = TRUE;
str_append_with_delim(sb, ""); str_append_with_delim(sb, "");
if (! strcmp(request, "getDivelogs")) if (! strcmp(request, "getDivelogs"))