fixed check for number of bytes transferred (Thanks, Jared!)

This commit is contained in:
Michael Ossmann
2013-02-22 17:44:00 -07:00
parent eb7e80c8bf
commit 000bfdd53e

View File

@ -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;