upstream fsfw bundled update #3

Closed
muellerr wants to merge 97 commits from mueller/bundled-update into eive/develop
Showing only changes of commit e64b2e0616 - Show all commits

View File

@ -28,18 +28,21 @@ ServiceInterfaceBuffer::ServiceInterfaceBuffer(std::string setMessage,
} }
#if FSFW_COLORED_OUTPUT == 1 #if FSFW_COLORED_OUTPUT == 1
if(setMessage.find("DEBUG")) { if(setMessage.find("DEBUG") != std::string::npos) {
colorPrefix = fsfw::ANSI_COLOR_MAGENTA; colorPrefix = fsfw::ANSI_COLOR_MAGENTA;
} }
else if(setMessage.find("INFO")) { else if(setMessage.find("INFO") != std::string::npos) {
colorPrefix = fsfw::ANSI_COLOR_GREEN; colorPrefix = fsfw::ANSI_COLOR_GREEN;
} }
else if(setMessage.find("WARNING")) { else if(setMessage.find("WARNING") != std::string::npos) {
colorPrefix = fsfw::ANSI_COLOR_YELLOW; colorPrefix = fsfw::ANSI_COLOR_YELLOW;
} }
else if(setMessage.find("ERROR")) { else if(setMessage.find("ERROR") != std::string::npos) {
colorPrefix = fsfw::ANSI_COLOR_RED; colorPrefix = fsfw::ANSI_COLOR_RED;
} }
else {
colorPrefix = fsfw::ANSI_COLOR_RESET;
}
#ifdef WIN32 #ifdef WIN32
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);