diff options
-rw-r--r-- | daemons/gptp/common/ether_port.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/daemons/gptp/common/ether_port.cpp b/daemons/gptp/common/ether_port.cpp index f517c181..024531cc 100644 --- a/daemons/gptp/common/ether_port.cpp +++ b/daemons/gptp/common/ether_port.cpp @@ -403,6 +403,14 @@ bool EtherPort::_processEvent( Event e ) GPTP_LOG_STATUS("LINKUP"); } + if( clock->getPriority1() == 255 || getPortState() == PTP_SLAVE ) { + becomeSlave( true ); + } else if( getPortState() == PTP_MASTER ) { + becomeMaster( true ); + } else { + startAnnounce(); + } + if (automotive_profile) { setAsCapable( true ); |