From 9252f71348091a25d2b4238d660d584aef9b672c Mon Sep 17 00:00:00 2001 From: Rich Roussel Date: Wed, 4 Oct 2017 07:52:14 -0700 Subject: Fix build issues when building without a specific architechture. --- daemons/gptp/common/common_port.hpp | 5 +++++ daemons/gptp/common/ptp_message.cpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/daemons/gptp/common/common_port.hpp b/daemons/gptp/common/common_port.hpp index b2735603..636d1a17 100644 --- a/daemons/gptp/common/common_port.hpp +++ b/daemons/gptp/common/common_port.hpp @@ -738,6 +738,11 @@ public: */ void getExtendedError(char *msg); + void SyncIntervalTimeoutExpireCount(int value) + { + fSyncIntervalTimeoutExpireCount = value; + } + /** * @brief Increment IEEE Port counter: * ieee8021AsPortStatRxSyncCount diff --git a/daemons/gptp/common/ptp_message.cpp b/daemons/gptp/common/ptp_message.cpp index f37f666b..17aa0af3 100644 --- a/daemons/gptp/common/ptp_message.cpp +++ b/daemons/gptp/common/ptp_message.cpp @@ -2955,7 +2955,7 @@ void PTPMessageSignalling::processMessage( EtherPort *port ) if (timeSyncInterval == PTPMessageSignalling::sigMsgInterval_Initial) { GPTP_LOG_VERBOSE("PTPMessageSignalling::processMessage timeSyncInterval == sigMsgInterval_Initial"); - port->setInitSyncInterval(); + port->resetInitSyncInterval(); waitTime = ((long long) (pow((double)2, port->getSyncInterval()) * 1000000000.0)); #ifndef APTP -- cgit v1.2.1