diff --git a/inc/Services/EventReportService.hpp b/inc/Services/EventReportService.hpp index 772c6e3119187812e61d03ff5e07e756d8496a6a..828aa26d8026bbf037dcfca16982d599e76079a6 100644 --- a/inc/Services/EventReportService.hpp +++ b/inc/Services/EventReportService.hpp @@ -8,11 +8,13 @@ */ #define CSS_EVENTS_MAX_COUNT 16 #define ECSS_EVENTS_BITS 16 -class EventReportService: public Service { + +class EventReportService : public Service { public: - EventReportService(){ + EventReportService() { serviceType = 5; } + /** * TM[5,1] informative event report * Send report to inform the respective recipients about an event @@ -62,4 +64,5 @@ public: void highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, uint8_t length); }; + #endif //ECSS_SERVICES_EVENTREPORTSERVICE_HPP diff --git a/src/Services/EventReportService.cpp b/src/Services/EventReportService.cpp index 3b31e95b65c08c5e769ec4a816e5b5390181a2fd..450636167e9170f9b9d1f757c75cbf37026cb0b7 100644 --- a/src/Services/EventReportService.cpp +++ b/src/Services/EventReportService.cpp @@ -11,7 +11,7 @@ */ void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t *data, - uint8_t length){ + uint8_t length) { // TM[5,1] Message report = createTM(1); report.appendEnum16(eventID); @@ -21,7 +21,7 @@ void EventReportService::informativeEventReport(uint16_t eventID, const uint8_t } void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, - uint8_t length ){ + uint8_t length) { // TM[5,2] Message report = createTM(2); report.appendEnum16(eventID); @@ -31,7 +31,7 @@ void EventReportService::lowSeverityAnomalyReport(uint16_t eventID, const uint8_ } void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, - uint8_t length){ + uint8_t length) { // TM[5,3] Message report = createTM(3); report.appendEnum16(eventID); @@ -41,7 +41,7 @@ void EventReportService::mediumSeverityAnomalyReport(uint16_t eventID, const uin } void EventReportService::highSeverityAnomalyReport(uint16_t eventID, const uint8_t *data, - uint8_t length){ + uint8_t length) { // TM[5,4] Message report = createTM(4); report.appendEnum16(eventID);