reducing complexity just a bit
This commit is contained in:
parent
2e70c3915e
commit
e6e75ab888
|
@ -212,11 +212,6 @@ void printWithLength(char *line) {
|
|||
consoleOutputBuffer((const uint8_t *) line, p - line);
|
||||
}
|
||||
|
||||
void printLine(Logging *logging) {
|
||||
printWithLength(logging->buffer);
|
||||
resetLogging(logging);
|
||||
}
|
||||
|
||||
void appendMsgPrefix(Logging *logging) {
|
||||
append(logging, "msg" DELIMETER);
|
||||
}
|
||||
|
@ -250,7 +245,8 @@ void printMsg(Logging *logger, const char *fmt, ...) {
|
|||
va_end(ap);
|
||||
|
||||
append(logger, DELIMETER);
|
||||
printLine(logger);
|
||||
printWithLength(logger->buffer);
|
||||
resetLogging(logger);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -56,7 +56,6 @@ void debugFloat(Logging *logging, const char *text, float value, int precision);
|
|||
void appendFloat(Logging *logging, float value, int precision);
|
||||
|
||||
void resetLogging(Logging *logging);
|
||||
void printLine(Logging *logging);
|
||||
|
||||
void appendMsgPrefix(Logging *logging);
|
||||
void appendMsgPostfix(Logging *logging);
|
||||
|
|
Loading…
Reference in New Issue