Skip to content

Commit

Permalink
libbladeRF: Load LMS DC cal registers every time init_device() is called
Browse files Browse the repository at this point in the history
Addresses issue #370.

The LMS calibration registers must be loaded each time init_device() is
called, as opposed to only during the post-FPGA load init, because the
the user may have updated his or her calibration table since then.
  • Loading branch information
jynik committed Jan 29, 2015
1 parent c05bc6e commit 4cbd29e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions host/libraries/libbladeRF/src/bladerf_priv.c
Expand Up @@ -240,11 +240,17 @@ int init_device(struct bladerf *dev)
return status;
}

/* Set up LMS DC offset register calibration and initial IQ settings,
* if any tables have been loaded already */
status = apply_lms_dc_cals(dev);
}

/* Set up LMS DC offset register calibration and initial IQ settings,
* if any tables have been loaded already.
*
* This is done every time the device is opened (with an FPGA loaded),
* as the user may change/update DC calibration tables without reloading the
* FPGA.
*/
status = apply_lms_dc_cals(dev);

return status;
}

Expand Down

0 comments on commit 4cbd29e

Please sign in to comment.