diff --git a/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc b/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc index d2c41b808556a921b18ef1b43ecf7b2d39acbc86..8beccb2a0ac2a37b51754e69feb49fba78a74b0e 100644 --- a/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc +++ b/MAC/APL/StationCU/src/DigitalBoardControl/DigitalBoardControl.cc @@ -191,9 +191,12 @@ void DigitalBoardControl::handlePropertySetAnswer(GCFEvent& answer) } if (strstr(pPropAnswer->pPropName, PN_SC_CLOCK) != 0) { - itsClock =(static_cast<const GCFPVInteger*>(pPropAnswer->pValue))->getValue(); - LOG_DEBUG_STR("Received clock change from PVSS, clock is now " << itsClock); - sendClockSetting(); + int newClock = (static_cast<const GCFPVInteger*>(pPropAnswer->pValue))->getValue(); + if (newClock != itsClock) { + itsClock = newClock; + LOG_DEBUG_STR("Received clock change from PVSS, clock is now " << itsClock); + sendClockSetting(); + } break; } LOG_WARN_STR("Got VCHANGEMSG signal from unknown property " <<