Skip to content

Commit

Permalink
libbladeRF: force rerun frequency calibration on module enable
Browse files Browse the repository at this point in the history
Addresses #947
  • Loading branch information
rthomp10 committed Dec 6, 2023
1 parent 747b64e commit 0c611be
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions host/libraries/libbladeRF/src/board/bladerf2/rfic_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,13 @@ static int _rfic_host_enable_module(struct bladerf *dev,
lastrun = nsec;
#endif

/** Force rerun frequency calibration */
if (enable) {
bladerf_frequency current_frequency;
CHECK_STATUS(dev->board->get_frequency(dev, ch, &current_frequency));
CHECK_STATUS(dev->board->set_frequency(dev, ch, current_frequency));
}

return 0;
}

Expand Down

0 comments on commit 0c611be

Please sign in to comment.