~aleteoryx/muditaos

df839f748f8ac52e9f97e0755b3cd7f1f9613efa — Paweł Joński 4 years ago 5f34431
[BH-691] Send EVMMinuteUpdated to ServiceTime

Send EVMMinuteUpdated message to ServiceTime
1 files changed, 2 insertions(+), 0 deletions(-)

M module-services/service-evtmgr/EventManager.cpp
M module-services/service-evtmgr/EventManager.cpp => module-services/service-evtmgr/EventManager.cpp +2 -0
@@ 27,6 27,7 @@
#include <service-db/DBNotificationMessage.hpp>
#include <service-desktop/Constants.hpp>
#include <service-desktop/DesktopMessages.hpp>
#include <service-time/Constants.hpp>
#include <service-time/service-time/TimeMessage.hpp>

#include <cassert>


@@ 289,6 290,7 @@ void EventManagerCommon::handleMinuteUpdate(time_t timestamp)
        auto message       = std::make_shared<sevm::RtcMinuteAlarmMessage>(MessageType::EVMMinuteUpdated);
        message->timestamp = timestamp;
        bus.sendUnicast(message, targetApplication);
        bus.sendUnicast(message, service::name::service_time);
    }
}