mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Add running core to Log
This commit is contained in:
parent
29fec3e8cc
commit
702e67078a
@ -69,6 +69,7 @@ static void debugPrintTimestamp(int level, Print* _logOutput)
|
|||||||
strftime(buffer, sizeof(buffer), " [" D_TIMESTAMP, timeinfo); // Literal String
|
strftime(buffer, sizeof(buffer), " [" D_TIMESTAMP, timeinfo); // Literal String
|
||||||
|
|
||||||
#ifdef ARDUINO
|
#ifdef ARDUINO
|
||||||
|
_logOutput->print(xPortGetCoreID());
|
||||||
_logOutput->printf(PSTR("%s.%03lu]"), buffer, milli);
|
_logOutput->printf(PSTR("%s.%03lu]"), buffer, milli);
|
||||||
#else
|
#else
|
||||||
debug_print(_logOutput, PSTR("%s.%03lu]"), buffer, milli);
|
debug_print(_logOutput, PSTR("%s.%03lu]"), buffer, milli);
|
||||||
@ -78,6 +79,7 @@ static void debugPrintTimestamp(int level, Print* _logOutput)
|
|||||||
|
|
||||||
uint32_t msecs = millis();
|
uint32_t msecs = millis();
|
||||||
#ifdef ARDUINO
|
#ifdef ARDUINO
|
||||||
|
_logOutput->print(xPortGetCoreID());
|
||||||
_logOutput->printf(PSTR(" [" D_TIME_MILLIS ".%03d]"), msecs / 1000, msecs % 1000);
|
_logOutput->printf(PSTR(" [" D_TIME_MILLIS ".%03d]"), msecs / 1000, msecs % 1000);
|
||||||
#else
|
#else
|
||||||
debug_print(_logOutput, PSTR("[" D_TIME_MILLIS ".%03d]"), msecs / 1000, msecs % 1000);
|
debug_print(_logOutput, PSTR("[" D_TIME_MILLIS ".%03d]"), msecs / 1000, msecs % 1000);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user