Skip to content
Snippets Groups Projects
Commit a233a3eb authored by Konstantinos Kapoglis's avatar Konstantinos Kapoglis Committed by athatheo
Browse files

added termination character in dummy service

parent 400c0180
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* Per the ECSS-E-ST-70-41C standard, p. 27-28, custom Services and Messages should start above 127. * Per the ECSS-E-ST-70-41C standard, p. 27-28, custom Services and Messages should start above 127.
*/ */
class DummyService : public Service { class DummyService : public Service {
private:
etl::string<1> termination = "\n";
public: public:
inline static const uint8_t ServiceType = 128; inline static const uint8_t ServiceType = 128;
...@@ -31,6 +33,7 @@ public: ...@@ -31,6 +33,7 @@ public:
void logAsECSSMessage(const etl::string<LOGGER_MAX_MESSAGE_SIZE>& data) { void logAsECSSMessage(const etl::string<LOGGER_MAX_MESSAGE_SIZE>& data) {
Message log = createTM(MessageType::LogString); Message log = createTM(MessageType::LogString);
log.appendString(data); log.appendString(data);
log.appendString(termination);
storeMessage(log); storeMessage(log);
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment