changeset 55:b313884c79fd

autocal Tx: txpwr-cal-setup factored out of fc-rfcal-txcheck
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 19:44:08 +0000
parents 21f6dba5c4df
children df827df6db82
files autocal/txchkmain.c autocal/txpwrmeas.c
diffstat 2 files changed, 14 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/txchkmain.c	Sat May 27 16:03:40 2017 +0000
+++ b/autocal/txchkmain.c	Sat May 27 19:44:08 2017 +0000
@@ -55,17 +55,6 @@
 	return(0);
 }
 
-prepare_rf_test_system()
-{
-	char cmd[80];
-
-	printf("Preparing RF test system for %s MHz Tx calibration\n",
-		selected_band->name);
-	sprintf(cmd, "txpwr-cal-setup %s %u\n", selected_band->name, arfcn);
-	tsid_command(cmd);
-	return(0);
-}
-
 main(argc, argv)
 	char **argv;
 {
@@ -77,7 +66,9 @@
 	connect_rvinterf_socket();
 	connect_tsid_socket();
 	setlinebuf(stdout);	/* to allow logging with tee */
-	prepare_rf_test_system();
+	printf("Preparing RF test system for %s MHz Tx calibration\n",
+		selected_band->name);
+	do_txpwr_cal_setup(selected_band->name, arfcn);
 
 	printf("Putting the DUT into Test Mode\n");
 	do_tms(1);
--- a/autocal/txpwrmeas.c	Sat May 27 16:03:40 2017 +0000
+++ b/autocal/txpwrmeas.c	Sat May 27 19:44:08 2017 +0000
@@ -7,6 +7,17 @@
 
 extern char tsid_response[];
 
+do_txpwr_cal_setup(band, arfcn)
+	char *band;
+	unsigned arfcn;
+{
+	char cmd[80];
+
+	sprintf(cmd, "txpwr-cal-setup %s %u\n", band, arfcn);
+	tsid_command(cmd);
+	return(0);
+}
+
 double
 tx_power_meas()
 {