changeset 84:a2d4cab0a592

fc-rfcal-txband: works after a couple of bugfixes
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 15 Jul 2017 23:57:56 +0000
parents 45ef4a06edfc
children 2bed7b024f64
files autocal/txcalconf.c autocal/txlevels.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/txcalconf.c	Sat Jul 15 23:09:46 2017 +0000
+++ b/autocal/txcalconf.c	Sat Jul 15 23:57:56 2017 +0000
@@ -90,7 +90,7 @@
 				filename_for_errs, lineno, expect_num);
 			exit(ERROR_USAGE);
 		}
-		tx_levels[txcal_band->start_plnum + n].target = atof(cp);
+		tx_levels[n].target = atof(cp);
 		while (isdigit(*cp) || *cp == '.')
 			cp++;
 	}
--- a/autocal/txlevels.c	Sat Jul 15 23:09:46 2017 +0000
+++ b/autocal/txlevels.c	Sat Jul 15 23:57:56 2017 +0000
@@ -47,7 +47,7 @@
 	for (plnum = txcal_band->start_plnum; plnum <= txcal_band->end_plnum;
 	     plnum++) {
 		do_txpw(TX_PWR_LEVEL, plnum);
-		plidx = plnum = txcal_band->start_plnum;
+		plidx = plnum - txcal_band->start_plnum;
 		target = tx_levels[plidx].target;
 		apc = find_apc_for_target(target, &tx_levels[plidx].slope);
 		tx_levels[plidx].apc = apc;