fixed bug that prevented use of num_samples argument to hackrf_init_sweep()
This commit is contained in:
@ -1841,7 +1841,7 @@ int ADDCALL hackrf_init_sweep(hackrf_device* device,
|
|||||||
return HACKRF_ERROR_INVALID_PARAM;
|
return HACKRF_ERROR_INVALID_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(SAMPLES_PER_BLOCK < num_samples) {
|
if(SAMPLES_PER_BLOCK > num_samples) {
|
||||||
return HACKRF_ERROR_INVALID_PARAM;
|
return HACKRF_ERROR_INVALID_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user