Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandraTrifan committed Apr 11, 2024
1 parent d81df1f commit fad903e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
link_libraries("-F/Library/Frameworks/")
# Fix linking on 10.14+ with Homebrew. See https://stackoverflow.com/questions/54068035
LINK_DIRECTORIES(/usr/local/lib)
find_library(PTHREAD_LIBRARIES pthread)
endif()

add_definitions(-D_GNU_SOURCE
Expand Down Expand Up @@ -168,6 +169,7 @@ set(LIBOSC_LIBS
${LIBAD9361_LIBRARIES}
${LIBAD9166_LIBRARIES}
dl
${PTHREAD_LIBRARIES}
)

configure_file(config.h.cmakein ${CMAKE_CURRENT_SOURCE_DIR}/config.h @ONLY)
Expand Down
9 changes: 3 additions & 6 deletions dialogs.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,19 +498,16 @@ 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);
printf("ret%d\n", (int)ret);
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 fad903e

Please sign in to comment.