figments: mainloop: warning--

This commit is contained in:
Torrie Fischer 2023-03-03 18:21:45 +01:00
parent 6a388891f5
commit 828a6ef100

View File

@ -88,7 +88,7 @@ MainLoop::loop()
frameSpeed = millis() - frameStart;
if (frameSpeed >= 23) { // TODO: Configure max frame time at build
const char* slowestName = (slowestTask->name ? slowestTask->name : "(Unnamed)");
Log.warning("Slow frame: %dms, %d tasks, longest task %s was %dms", frameSpeed, taskCount, slowestTask->name, slowest);
Log.warning("Slow frame: %dms, %d tasks, longest task %s was %dms", frameSpeed, taskCount, slowestName, slowest);
}
}