Removes the constant "+00000ms:" from the debug output.

This commit is contained in:
rotorman
2021-08-21 11:22:16 +02:00
parent 83413a2242
commit 6f7a0eee55
5 changed files with 4 additions and 15 deletions
+1 -3
View File
@@ -45,9 +45,8 @@ void serialPrintf(const char * format, ...)
va_list arglist;
char tmp[PRINTF_BUFFER_SIZE+1];
snprintf(tmp, PRINTF_BUFFER_SIZE, "+%05lums: ", debugCounter1ms);
va_start(arglist, format);
vsnprintf(tmp+strlen(tmp), PRINTF_BUFFER_SIZE-strlen(tmp), format, arglist);
vsnprintf(tmp, PRINTF_BUFFER_SIZE, format, arglist);
tmp[PRINTF_BUFFER_SIZE] = '\0';
va_end(arglist);
@@ -55,7 +54,6 @@ void serialPrintf(const char * format, ...)
while (*t) {
serialPutc(*t++);
}
debugCounter1ms = 0;
}
void serialCrlf()