# HG changeset patch
# User Mychaela Falconia <falcon@freecalypso.org>
# Date 1518499033 0
# Node ID 1e49bb52b07ee9116c26da03176ea486ad18090e
# Parent  ae8da516681cb959e9bf269059bf53c0a511cb9a
fc-rfcal-txband: set calchan indices in the levels table

diff -r ae8da516681c -r 1e49bb52b07e autocal/txlevels.c
--- 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))