fixed bug that prevented use of num_samples argument to hackrf_init_sweep()

This commit is contained in:
Michael Ossmann
2017-02-10 22:39:25 -07:00
parent bb24ef5494
commit e6351d7d69

View File

@ -1841,7 +1841,7 @@ int ADDCALL hackrf_init_sweep(hackrf_device* device,
return HACKRF_ERROR_INVALID_PARAM;
}
if(SAMPLES_PER_BLOCK < num_samples) {
if(SAMPLES_PER_BLOCK > num_samples) {
return HACKRF_ERROR_INVALID_PARAM;
}