Bugfix in Command Executor and Timer Update #10
@ -146,8 +146,8 @@ std::string* ServiceInterfaceBuffer::getPreamble(size_t * preambleSize) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
int32_t charCount = sprintf(parsePosition,
|
int32_t charCount = sprintf(parsePosition,
|
||||||
"%s: | %02" SCNu32 ":%02" SCNu32 ":%02" SCNu32 ".%03" SCNu32 " | ",
|
"%s%s | %02" SCNu32 ":%02" SCNu32 ":%02" SCNu32 ".%03" SCNu32 " | ",
|
||||||
this->logMessage.c_str(), loggerTime.hour,
|
this->logMessage.c_str(), sif::ANSI_COLOR_RESET, loggerTime.hour,
|
||||||
loggerTime.minute,
|
loggerTime.minute,
|
||||||
loggerTime.second,
|
loggerTime.second,
|
||||||
loggerTime.usecond /1000);
|
loggerTime.usecond /1000);
|
||||||
|
@ -56,19 +56,23 @@ void fsfwPrint(sif::PrintLevel printType, const char* fmt, va_list arg) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (printType == sif::PrintLevel::INFO_LEVEL) {
|
if (printType == sif::PrintLevel::INFO_LEVEL) {
|
||||||
len += sprintf(bufferPosition + len, "INFO: ");
|
len += sprintf(bufferPosition + len, "INFO");
|
||||||
}
|
}
|
||||||
if(printType == sif::PrintLevel::DEBUG_LEVEL) {
|
if(printType == sif::PrintLevel::DEBUG_LEVEL) {
|
||||||
len += sprintf(bufferPosition + len, "DEBUG: ");
|
len += sprintf(bufferPosition + len, "DEBUG");
|
||||||
}
|
}
|
||||||
if(printType == sif::PrintLevel::WARNING_LEVEL) {
|
if(printType == sif::PrintLevel::WARNING_LEVEL) {
|
||||||
len += sprintf(bufferPosition + len, "WARNING: ");
|
len += sprintf(bufferPosition + len, "WARNING");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(printType == sif::PrintLevel::ERROR_LEVEL) {
|
if(printType == sif::PrintLevel::ERROR_LEVEL) {
|
||||||
len += sprintf(bufferPosition + len, "ERROR: ");
|
len += sprintf(bufferPosition + len, "ERROR");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if FSFW_COLORED_OUTPUT == 1
|
||||||
|
len += sprintf(bufferPosition + len, sif::ANSI_COLOR_RESET);
|
||||||
|
#endif
|
||||||
|
|
||||||
Clock::TimeOfDay_t now;
|
Clock::TimeOfDay_t now;
|
||||||
Clock::getDateAndTime(&now);
|
Clock::getDateAndTime(&now);
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user