Do not break hackrf_open() API, provide a hackrf_open_by_serial() instead for the new functionality.

This commit is contained in:
Heikki Hannikainen
2015-02-24 07:15:46 +02:00
committed by Heikki Hannikainen
parent 893fef3fcf
commit c0b3638cce
8 changed files with 37 additions and 17 deletions

View File

@@ -782,7 +782,7 @@ int main(int argc, char** argv) {
return EXIT_FAILURE;
}
result = hackrf_open(serial_number, &device);
result = hackrf_open_by_serial(serial_number, &device);
if( result != HACKRF_SUCCESS ) {
printf("hackrf_open() failed: %s (%d)\n", hackrf_error_name(result), result);
usage();