message separator

This commit is contained in:
2018-11-15 13:07:16 +01:00
parent 616f392f62
commit 85edf8ec93

View File

@@ -9,7 +9,7 @@ int FORMAT_BUFFER_SIZE(const char* format, ...) {
}
void PRINT_MSG(Print &out, const char* prefix, const char* format, ...) {
if(SPROCKET_PRINT){
out.print(String(prefix) + String(": "));
out.print(String(prefix) + String("\t| "));
char formatString[128], *ptr;
strncpy_P( formatString, format, sizeof(formatString) ); // copy in from program mem
// null terminate - leave last char since we might need it in worst case for result's \0