# HG changeset patch # User Mychaela Falconia # Date 1512802873 0 # Node ID 7ad0495991ed1a5c189935e05fb94ae570775c4f # Parent 16aab86384a7c0b004049909834c5caf22ce0d12 autocal: use the new ERROR_RFFAIL exit code diff -r 16aab86384a7 -r 7ad0495991ed autocal/txbasis.c --- 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); diff -r 16aab86384a7 -r 7ad0495991ed autocal/txlevels.c --- 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); } diff -r 16aab86384a7 -r 7ad0495991ed autocal/vcxomain.c --- 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 */ diff -r 16aab86384a7 -r 7ad0495991ed autocal/vcxomeas.c --- 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); }