From f16d92c1b18a85efe239c1880887f7af8d8f79a8 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 31 Mar 2023 17:05:01 +0200 Subject: [PATCH] some more lock handling --- mission/com/CcsdsIpCoreHandler.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mission/com/CcsdsIpCoreHandler.cpp b/mission/com/CcsdsIpCoreHandler.cpp index d4608191..84c49e8b 100644 --- a/mission/com/CcsdsIpCoreHandler.cpp +++ b/mission/com/CcsdsIpCoreHandler.cpp @@ -31,6 +31,7 @@ CcsdsIpCoreHandler::CcsdsIpCoreHandler(object_id_t objectId, object_id_t tcDesti auto mqArgs = MqArgs(objectId, static_cast(this)); eventQueue = QueueFactory::instance()->createMessageQueue(10, EventMessage::EVENT_MESSAGE_SIZE, &mqArgs); + ptmeLocked = true; } CcsdsIpCoreHandler::~CcsdsIpCoreHandler() = default; @@ -79,6 +80,8 @@ ReturnValue_t CcsdsIpCoreHandler::initialize() { } else { enablePrioritySelectMode(); } + resetPtme(); + ptmeLocked = false; #if OBSW_SYRLINKS_SIMULATED == 1 // Update data on rising edge @@ -330,6 +333,7 @@ void CcsdsIpCoreHandler::initPtmeUpdateAfterXCycles() { if (not updateContext.performPtmeUpdateAfterXCycles) { updateContext.performPtmeUpdateAfterXCycles = true; updateContext.ptmeUpdateCycleCount = 0; + ptmeLocked = true; } }