mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-01 19:35:42 +00:00
#701 - Add system up time to debug output
This commit is contained in:
parent
13b8c140b4
commit
621313d63c
@ -78,9 +78,9 @@ size_t RedirectablePrint::logDebug(const char *format, ...)
|
|||||||
int min = (hms % SEC_PER_HOUR) / SEC_PER_MIN;
|
int min = (hms % SEC_PER_HOUR) / SEC_PER_MIN;
|
||||||
int sec = (hms % SEC_PER_HOUR) % SEC_PER_MIN; // or hms % SEC_PER_MIN
|
int sec = (hms % SEC_PER_HOUR) % SEC_PER_MIN; // or hms % SEC_PER_MIN
|
||||||
|
|
||||||
r += printf("%02d:%02d:%02d ", hour, min, sec);
|
r += printf("%02d:%02d:%02d %u ", hour, min, sec, millis() / 1000);
|
||||||
} else
|
} else
|
||||||
r += printf("??:??:?? ");
|
r += printf("??:??:?? %u ", millis() / 1000);
|
||||||
|
|
||||||
auto thread = concurrency::OSThread::currentThread;
|
auto thread = concurrency::OSThread::currentThread;
|
||||||
if(thread) {
|
if(thread) {
|
||||||
|
Loading…
Reference in New Issue
Block a user