eive-obsw/mission/utility/InitMission.h
Irini Kosmidou a1cc5b0ca7
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good
Merge remote-tracking branch 'origin/develop' into irini
2022-09-27 17:36:19 +02:00

20 lines
680 B
C++

#pragma once
#include <fsfw/objectmanager/SystemObjectIF.h>
#include <fsfw/serviceinterface/ServiceInterface.h>
namespace initmission {
static void printAddObjectError(const char* name, object_id_t objectId) {
#if FSFW_CPP_OSTREAM_ENABLED == 1
sif::error << "InitMission::printAddError: Adding object " << name << " with object ID 0x"
<< std::hex << std::setfill('0') << std::setw(8) << objectId << " failed!" << std::dec
<< std::endl;
#else
sif::printError("InitMission::printAddError: Adding object %s with object ID 0x%08x failed!\n",
name, objectId);
#endif /* FSFW_CPP_OSTREAM_ENABLED == 1 */
}
} // namespace initmission