mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
79c2b00212
commit
96091e8238
1 changed files with 1 additions and 1 deletions
|
@ -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"))
|
||||
|
|
Loading…
Reference in a new issue