fixed check for number of bytes transferred (Thanks, Jared!)
This commit is contained in:
@ -518,7 +518,7 @@ int hackrf_board_id_read(hackrf_device* device, uint8_t* value) {
|
|||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
if( result < 2 ) {
|
if (result < 1) {
|
||||||
return HACKRF_ERROR_LIBUSB;
|
return HACKRF_ERROR_LIBUSB;
|
||||||
} else {
|
} else {
|
||||||
return HACKRF_SUCCESS;
|
return HACKRF_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user