Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraTrifan committed Apr 10, 2024
1 parent d81df1f commit cc43b82
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions dialogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ static void refresh_usb(void)
scan = true;
}
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(dialogs.filter_ip))) {
p += sprintf(p, "ip:");
// p += sprintf(p, "ip:");
scan = true;
}

Expand All @@ -498,19 +498,15 @@ static void refresh_usb(void)
if (!ctxs)
goto nope;

#ifdef __APPLE__
// Scanning seems to be broken at the moment
goto nope;
#endif


printf("filter%s\n", filter);
ret = iio_scan_context_get_info_list(ctxs, &info);
if (ret < 0)
goto err_free_ctxs;
if (!ret)
goto err_free_info_list;

for (i = 0; i < (size_t) ret; i++) {
printf("info ctx%s\n", iio_context_info_get_description(info[i]));
tmp = strdup(iio_context_info_get_description(info[i]));
pid = strdup(iio_context_info_get_description(info[i]));

Expand Down

0 comments on commit cc43b82

Please sign in to comment.