comparison 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
comparison
equal deleted inserted replaced
103:16aab86384a7 104:7ad0495991ed
39 39
40 printf("Stopping RF Tx on the DUT\n"); 40 printf("Stopping RF Tx on the DUT\n");
41 do_rfe(STOP_ALL); 41 do_rfe(STOP_ALL);
42 if (nanflag) { 42 if (nanflag) {
43 printf("Error: got NaN power measurement, aborting\n"); 43 printf("Error: got NaN power measurement, aborting\n");
44 exit(ERROR_TARGET); 44 exit(ERROR_RFFAIL);
45 } 45 }
46 return(0); 46 return(0);
47 } 47 }
48 48
49 txcal_basis_compute() 49 txcal_basis_compute()
53 for (n = 0; n < num_basis_points - 1; n++) { 53 for (n = 0; n < num_basis_points - 1; n++) {
54 if (tx_basis[n+1].vout <= tx_basis[n].vout) { 54 if (tx_basis[n+1].vout <= tx_basis[n].vout) {
55 fprintf(stderr, 55 fprintf(stderr,
56 "error: Vout at APC=%u is not greater than at APC=%u\n", 56 "error: Vout at APC=%u is not greater than at APC=%u\n",
57 tx_basis[n+1].apc, tx_basis[n].apc); 57 tx_basis[n+1].apc, tx_basis[n].apc);
58 exit(ERROR_TARGET); 58 exit(ERROR_RFFAIL);
59 } 59 }
60 tx_basis[n].slope = (tx_basis[n+1].vout - tx_basis[n].vout) / 60 tx_basis[n].slope = (tx_basis[n+1].vout - tx_basis[n].vout) /
61 (tx_basis[n+1].apc - tx_basis[n].apc); 61 (tx_basis[n+1].apc - tx_basis[n].apc);
62 } 62 }
63 return(0); 63 return(0);