mirror of
https://github.com/greatscottgadgets/hackrf.git
synced 2026-03-21 14:47:27 +01:00
Do not break hackrf_open() API, provide a hackrf_open_by_serial() instead for the new functionality.
This commit is contained in:
committed by
Heikki Hannikainen
parent
893fef3fcf
commit
c0b3638cce
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user