libbladeRF: bandwidth assignments in oversample mode issue log warning

Fixes #920
This commit is contained in:
Ryan Thompson 2023-06-05 13:42:44 -05:00
commit dfd8549d74

View file

@ -1186,6 +1186,10 @@ static int bladerf2_set_bandwidth(struct bladerf *dev,
{
CHECK_BOARD_STATE(STATE_INITIALIZED);
if (dev->feature == BLADERF_FEATURE_OVERSAMPLE) {
log_warning("bandwidth assignements with oversample feature enabled yields unkown results\n");
}
struct bladerf2_board_data *board_data = dev->board_data;
return board_data->rfic->set_bandwidth(dev, ch, bandwidth, actual);