mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2026-03-22 09:04:18 +01:00
message separator
This commit is contained in:
@@ -9,7 +9,7 @@ int FORMAT_BUFFER_SIZE(const char* format, ...) {
|
|||||||
}
|
}
|
||||||
void PRINT_MSG(Print &out, const char* prefix, const char* format, ...) {
|
void PRINT_MSG(Print &out, const char* prefix, const char* format, ...) {
|
||||||
if(SPROCKET_PRINT){
|
if(SPROCKET_PRINT){
|
||||||
out.print(String(prefix) + String(": "));
|
out.print(String(prefix) + String("\t| "));
|
||||||
char formatString[128], *ptr;
|
char formatString[128], *ptr;
|
||||||
strncpy_P( formatString, format, sizeof(formatString) ); // copy in from program mem
|
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
|
// null terminate - leave last char since we might need it in worst case for result's \0
|
||||||
|
|||||||
Reference in New Issue
Block a user