Skip to content
Snippets Groups Projects
Commit a9bd87cc authored by athatheo's avatar athatheo
Browse files

Merge branch 'dummy-service-termination' into 'master'

added termination character in dummy service

Closes #176

See merge request acubesat/obc/ecss-services!112
parents 400c0180 a233a3eb
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