changeset 104:7ad0495991ed

autocal: use the new ERROR_RFFAIL exit code
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Dec 2017 07:01:13 +0000
parents 16aab86384a7
children 44c6a2b4d40a
files autocal/txbasis.c autocal/txlevels.c autocal/vcxomain.c autocal/vcxomeas.c
diffstat 4 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/txbasis.c	Sun Aug 13 05:04:48 2017 +0000
+++ b/autocal/txbasis.c	Sat Dec 09 07:01:13 2017 +0000
@@ -41,7 +41,7 @@
 	do_rfe(STOP_ALL);
 	if (nanflag) {
 		printf("Error: got NaN power measurement, aborting\n");
-		exit(ERROR_TARGET);
+		exit(ERROR_RFFAIL);
 	}
 	return(0);
 }
@@ -55,7 +55,7 @@
 			fprintf(stderr,
 			"error: Vout at APC=%u is not greater than at APC=%u\n",
 				tx_basis[n+1].apc, tx_basis[n].apc);
-			exit(ERROR_TARGET);
+			exit(ERROR_RFFAIL);
 		}
 		tx_basis[n].slope = (tx_basis[n+1].vout - tx_basis[n].vout) /
 				    (tx_basis[n+1].apc - tx_basis[n].apc);
--- a/autocal/txlevels.c	Sun Aug 13 05:04:48 2017 +0000
+++ b/autocal/txlevels.c	Sat Dec 09 07:01:13 2017 +0000
@@ -74,11 +74,11 @@
 	do_rfe(STOP_ALL);
 	if (nanflag) {
 		printf("Error: got NaN power measurement, aborting\n");
-		exit(ERROR_TARGET);
+		exit(ERROR_RFFAIL);
 	}
 	if (errflag) {
 		printf("Error: Tx power off by more than 2 dBm, aborting\n");
-		exit(ERROR_TARGET);
+		exit(ERROR_RFFAIL);
 	}
 	return(0);
 }
--- a/autocal/vcxomain.c	Sun Aug 13 05:04:48 2017 +0000
+++ b/autocal/vcxomain.c	Sat Dec 09 07:01:13 2017 +0000
@@ -102,7 +102,7 @@
 	/* sanity check */
 	if (zero_check_freq < -70.0f || zero_check_freq > 70.0f) {
 		printf("Error: final freq offset out of range, aborting\n");
-		exit(ERROR_TARGET);
+		exit(ERROR_RFFAIL);
 	}
 
 	/* Psi computations */
--- a/autocal/vcxomeas.c	Sun Aug 13 05:04:48 2017 +0000
+++ b/autocal/vcxomeas.c	Sat Dec 09 07:01:13 2017 +0000
@@ -29,7 +29,7 @@
 	if (isnan(meas)) {
 		printf("Error: got NaN response, aborting\n");
 		do_rfe(STOP_ALL);
-		exit(ERROR_TARGET);
+		exit(ERROR_RFFAIL);
 	}
 	return(meas);
 }