|
|
|
@ -1703,14 +1703,14 @@ int validate_flatness(int i) {
|
|
|
|
if (actual_t[j] < peakLevel - 6) // Search right -3dB
|
|
|
|
if (actual_t[j] < peakLevel - 6) // Search right -3dB
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
shell_printf("\n\rRight width %d\n\r", j - peakIndex );
|
|
|
|
//shell_printf("\n\rRight width %d\n\r", j - peakIndex );
|
|
|
|
if (j - peakIndex < test_case[i].width)
|
|
|
|
if (j - peakIndex < test_case[i].width)
|
|
|
|
return(TS_FAIL);
|
|
|
|
return(TS_FAIL);
|
|
|
|
for (j = peakIndex; j > 0; j--) {
|
|
|
|
for (j = peakIndex; j > 0; j--) {
|
|
|
|
if (actual_t[j] < peakLevel - 6) // Search left -3dB
|
|
|
|
if (actual_t[j] < peakLevel - 6) // Search left -3dB
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
shell_printf("Left width %d\n\r", j - peakIndex );
|
|
|
|
//shell_printf("Left width %d\n\r", j - peakIndex );
|
|
|
|
if (peakIndex - j < test_case[i].width)
|
|
|
|
if (peakIndex - j < test_case[i].width)
|
|
|
|
return(TS_FAIL);
|
|
|
|
return(TS_FAIL);
|
|
|
|
test_fail_cause[i] = "";
|
|
|
|
test_fail_cause[i] = "";
|
|
|
|
|