fix date/time entry in console

This commit is contained in:
arovak 2021-03-17 12:24:27 +01:00
parent eef386950f
commit e4ea6e69ce

View File

@ -70,7 +70,7 @@ static void debugPrintTimestamp(int level, Print* _logOutput)
// strftime(buffer, sizeof(buffer), "[%H:%M:%S.", timeinfo); // Literal String
#ifdef ARDUINO
_logOutput->printf(PSTR("%03lu]"), curTime.tv_usec / 1000);
_logOutput->printf(PSTR("%s.%03lu]"), buffer, curTime.tv_usec / 1000);
#else
debug_print(_logOutput, PSTR("%s.%03lu]"), buffer, curTime.tv_usec / 1000);
#endif