From c72ba92247a2d1d13b5d12291a304c46ac56cfa5 Mon Sep 17 00:00:00 2001 From: "Robin.Mueller" Date: Tue, 1 Dec 2020 15:05:54 +0100 Subject: [PATCH] health service update --- pus/CService201HealthCommanding.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pus/CService201HealthCommanding.cpp b/pus/CService201HealthCommanding.cpp index db43db89..edacd73a 100644 --- a/pus/CService201HealthCommanding.cpp +++ b/pus/CService201HealthCommanding.cpp @@ -86,11 +86,15 @@ ReturnValue_t CService201HealthCommanding::handleReply object_id_t objectId, bool *isStep) { Command_t replyId = reply->getCommand(); if (replyId == HealthMessage::REPLY_HEALTH_SET) { - return prepareHealthSetReply(reply); + return EXECUTION_COMPLETE; + } + else if(replyId == CommandMessageIF::REPLY_REJECTED) { + return reply->getReplyRejectedReason(); } return CommandingServiceBase::INVALID_REPLY; } +// Not used for now, health state already reported by event ReturnValue_t CService201HealthCommanding::prepareHealthSetReply( const CommandMessage* reply) { prepareHealthSetReply(reply);