From 893e0a41d717c8b743dcb2373299d57f4e0d437f Mon Sep 17 00:00:00 2001 From: "mikael.senger" Date: Mon, 24 Feb 2025 15:23:38 +0100 Subject: [PATCH] Changed events definition to macro --- src/fsfw/pus/Service11TelecommandScheduling.h | 2 +- src/fsfw/tcdistribution/definitions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fsfw/pus/Service11TelecommandScheduling.h b/src/fsfw/pus/Service11TelecommandScheduling.h index fd9cf733..d7185e3b 100644 --- a/src/fsfw/pus/Service11TelecommandScheduling.h +++ b/src/fsfw/pus/Service11TelecommandScheduling.h @@ -49,7 +49,7 @@ class Service11TelecommandScheduling final : public PusServiceBase { //! [EXPORT] : [COMMENT] Deletion of a TC from the map failed. //! P1: First 32 bit of request ID, P2. Last 32 bit of Request ID - static constexpr Event TC_DELETION_FAILED = event::makeEvent(SUBSYSTEM_ID, 0, severity::MEDIUM); + static constexpr Event TC_DELETION_FAILED = MAKE_EVENT(0, severity::MEDIUM); // The types of PUS-11 subservices enum Subservice : uint8_t { diff --git a/src/fsfw/tcdistribution/definitions.h b/src/fsfw/tcdistribution/definitions.h index 04a7a4a5..cb59f0c3 100644 --- a/src/fsfw/tcdistribution/definitions.h +++ b/src/fsfw/tcdistribution/definitions.h @@ -25,7 +25,7 @@ static constexpr ReturnValue_t INCORRECT_SECONDARY_HEADER = MAKE_RETURN_CODE(11) static constexpr uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::TMTC_DISTRIBUTION; //! P1: Returnvalue, P2: 0 for TM issues, 1 for TC issues -static constexpr Event HANDLE_PACKET_FAILED = event::makeEvent(SUBSYSTEM_ID, 0, severity::LOW); +static constexpr Event HANDLE_PACKET_FAILED = MAKE_EVENT(0, severity::LOW); }; // namespace tmtcdistrib #endif // FSFW_TMTCPACKET_DEFINITIONS_H