comparison autocal/txlevels.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 80281b67511f
children 1e49bb52b07e
comparison
equal deleted inserted replaced
103:16aab86384a7 104:7ad0495991ed
72 72
73 printf("Stopping RF Tx on the DUT\n"); 73 printf("Stopping RF Tx on the DUT\n");
74 do_rfe(STOP_ALL); 74 do_rfe(STOP_ALL);
75 if (nanflag) { 75 if (nanflag) {
76 printf("Error: got NaN power measurement, aborting\n"); 76 printf("Error: got NaN power measurement, aborting\n");
77 exit(ERROR_TARGET); 77 exit(ERROR_RFFAIL);
78 } 78 }
79 if (errflag) { 79 if (errflag) {
80 printf("Error: Tx power off by more than 2 dBm, aborting\n"); 80 printf("Error: Tx power off by more than 2 dBm, aborting\n");
81 exit(ERROR_TARGET); 81 exit(ERROR_RFFAIL);
82 } 82 }
83 return(0); 83 return(0);
84 } 84 }