detection PTP and Write ID msg at 0 at robus level
@@ -224,6 +224,19 @@ uint8_t Recep_NodeConcerned(header_t *header)
case IDACK:
ctx.status.rx_error = FALSE;
case ID:
+ if (header->target == DEFAULTID)
+ {
+ if(ctx.detection.keepline != NO_BRANCH)
+ {
+ return true;
+ }
+ else// discard message if ID = 0 and one PTP at 1
+ {
+ return false;
+ }
+ }
+ else
+ {
// Check all VM id
for (int i = 0; i < ctx.vm_number; i++)
{
@@ -232,6 +245,7 @@ uint8_t Recep_NodeConcerned(header_t *header)
return true;
}
}
+ }
break;
case TYPE:
// Check all VM type
