changeset 115:1e49bb52b07e

fc-rfcal-txband: set calchan indices in the levels table
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 13 Feb 2018 05:17:13 +0000
parents ae8da516681c
children 4ce87a30383f
files autocal/txlevels.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/txlevels.c	Tue Feb 13 05:06:28 2018 +0000
+++ b/autocal/txlevels.c	Tue Feb 13 05:17:13 2018 +0000
@@ -58,6 +58,8 @@
 		apc = find_apc_for_target(target, &tx_levels[plidx].slope);
 		tx_levels[plidx].apc = apc;
 		do_txpw(TX_APC_DAC, apc);
+		do_txpw(TX_CHAN_CAL_TABLE,
+			txcal_band->calchan_selections[plidx]);
 		usleep(20000);
 		meas = tx_power_meas();
 		if (isnan(meas))