From 6bf16b4e665cdade0d343dd2d027f02fb73a1ebc Mon Sep 17 00:00:00 2001 From: Alexander Chemeris Date: Tue, 28 Apr 2015 20:14:08 -0400 Subject: [PATCH] host: Give DCDC converter time to settle when we set PA output power. --- host/umtrx_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/host/umtrx_impl.cpp b/host/umtrx_impl.cpp index b58bce3c..4e42a74b 100644 --- a/host/umtrx_impl.cpp +++ b/host/umtrx_impl.cpp @@ -697,6 +697,9 @@ double umtrx_impl::set_pa_power(double power, const std::string &which) // Set the value set_pa_dcdc_r(dcdc_val); + // Wait for the DCDC converter output to settle before we read it back + boost::this_thread::sleep(boost::posix_time::milliseconds(100)); + // Check what power do we actually have by reading the DCDC voltage // and converting it to the PA power double v_actual = read_dc_v("DCOUT").to_real();