Skip to content

Commit

Permalink
plugins: adrv9002: minor fixes
Browse files Browse the repository at this point in the history
- reset iio timeout after changing it
- fixed missing debug message on load to device

Signed-off-by: Andrei Popa <andrei.popa@analog.com>
  • Loading branch information
andrei47w committed Nov 21, 2023
1 parent 695bf42 commit a169083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/adrv9002.c
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ static void profile_gen_load_config_to_device(GtkButton *self, gpointer data)
strcat(message, "\nFailed to read the command output!");
goto err;
}
sprintf(message, "%s", out);
strcat(message, out);

// load profile and stream to device
char *buf;
Expand Down Expand Up @@ -2241,6 +2241,7 @@ static void profile_gen_load_config_to_device(GtkButton *self, gpointer data)
}
free(buf);

iio_context_set_timeout(priv->ctx, 5000);
strcat(message, "\nSuccessfully loaded profile and stream image to device!");
err:
profile_gen_set_debug_info(data, message);
Expand Down

0 comments on commit a169083

Please sign in to comment.