diff --git a/plugins/adrv9002.c b/plugins/adrv9002.c index e8b1d52f..023773ad 100644 --- a/plugins/adrv9002.c +++ b/plugins/adrv9002.c @@ -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; @@ -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);