1
0
forked from fsfw/fsfw

better returnvalues for CSB init

This commit is contained in:
2020-06-24 16:03:54 +02:00
parent 8a56964dab
commit 644896245f
2 changed files with 4 additions and 3 deletions

View File

@ -57,7 +57,7 @@ ReturnValue_t CommandingServiceBase::initialize() {
PUSDistributorIF* distributor = objectManager->get<PUSDistributorIF>(
packetSource);
if (packetForwarding == nullptr or distributor == nullptr) {
return RETURN_FAILED;
return ObjectManagerIF::CHILD_INIT_FAILED;
}
distributor->registerService(this);
@ -68,7 +68,7 @@ ReturnValue_t CommandingServiceBase::initialize() {
TCStore = objectManager->get<StorageManagerIF>(objects::TC_STORE);
if (IPCStore == nullptr or TCStore == nullptr) {
return RETURN_FAILED;
return ObjectManagerIF::CHILD_INIT_FAILED;
}
return RETURN_OK;