diff autocal/txlevels.c @ 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 7ad0495991ed
children 4c3f4231a021
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))