I am new to CAPL , and I was wondering how this word works in my example ?
on errorFrame
{
int ReportFirstDetecetdError_Ch1 = 0;
if ( this.msgChannel == 1 )
{
AmountOfDetected_CAN_Error_Ch1++;
if ( ReportFirstDetecetdError_Ch1 == 0 )
{
AST_SetReportStep( AST_STEP_WARNING, "CAN 1: First CAN error detected! Only the first will be in the test report." );
ReportFirstDetecetdError_Ch1 = 1;
}
}
}