Compare commits

...

2 Commits

Author SHA1 Message Date
589e64fc46 void function now 2021-06-11 15:05:43 +02:00
1630682548 added function to set color 2021-06-11 14:52:09 +02:00
4 changed files with 11 additions and 0 deletions

View File

@@ -171,6 +171,10 @@ bool ServiceInterfaceBuffer::crAdditionEnabled() const {
return addCrToPreamble;
}
void ServiceInterfaceBuffer::setAsciiColorPrefix(std::string colorPrefix) {
this->colorPrefix = colorPrefix;
}
#ifdef UT699
#include "../osal/rtems/Interrupt.h"

View File

@@ -48,6 +48,7 @@ private:
#if FSFW_COLORED_OUTPUT == 1
std::string colorPrefix;
void setAsciiColorPrefix(std::string colorPrefix);
#endif
// For EOF detection

View File

@@ -19,5 +19,9 @@ bool ServiceInterfaceStream::crAdditionEnabled() const {
return streambuf.crAdditionEnabled();
}
void ServiceInterfaceStream::setAsciiColorPrefix(std::string asciiColorCode) {
streambuf.setAsciiColorPrefix(asciiColorCode);
}
#endif

View File

@@ -46,6 +46,8 @@ public:
*/
bool crAdditionEnabled() const;
void setAsciiColorPrefix(std::string asciiColorCode);
protected:
ServiceInterfaceBuffer streambuf;
};