Changed events definition to macro #51
Reference in New Issue
Block a user
Delete Branch "event-definition"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@@ -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 IDstatic constexpr Event TC_DELETION_FAILED = event::makeEvent(SUBSYSTEM_ID, 0, severity::MEDIUM);what is the problem with an explicit function. We should be trying to get away from the C pre-processor, not the other way around.
@@ -26,3 +26,3 @@static constexpr uint8_t SUBSYSTEM_ID = SUBSYSTEM_ID::TMTC_DISTRIBUTION;//! P1: Returnvalue, P2: 0 for TM issues, 1 for TC issuesstatic constexpr Event HANDLE_PACKET_FAILED = event::makeEvent(SUBSYSTEM_ID, 0, severity::LOW);static constexpr Event HANDLE_PACKET_FAILED = MAKE_EVENT(0, severity::LOW);same as above
This can be closed. The underlying issue was the maximum character count in a line for autofmt.
I recommend you disable autofmt for these sensitive sections of code via
// clang-format offand// clang-format on.Pull request closed