FreeCalypso > hg > fc-rfcal-tools
diff autocal/txbasis.c @ 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 | b0618796d28d |
children | 4c3f4231a021 |
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);