figments: mainloop: better startup logs
This commit is contained in:
parent
b244a28c6e
commit
242182d460
@ -24,10 +24,10 @@ MainLoop::loop()
|
||||
for(auto figmentJob: scheduler.tasks) {
|
||||
if (!strcmp(figmentJob->name, evt.asString())) {
|
||||
if (jobState) {
|
||||
Log.trace("Starting task %s", figmentJob->name);
|
||||
Log.trace("** Starting %s", figmentJob->name);
|
||||
figmentJob->start();
|
||||
} else {
|
||||
Log.trace("Stopping task %s", figmentJob->name);
|
||||
Log.trace("** Stopping %s", figmentJob->name);
|
||||
figmentJob->stop();
|
||||
}
|
||||
}
|
||||
@ -35,9 +35,7 @@ MainLoop::loop()
|
||||
}
|
||||
|
||||
for(Task* task : scheduler) {
|
||||
if (evt.intent == InputEvent::SetPower) {
|
||||
Log.notice("Event %s", task->name);
|
||||
}
|
||||
Log.verbose("** Eventing %s", task->name);
|
||||
task->handleEvent(evt);
|
||||
}
|
||||
}
|
||||
@ -78,6 +76,7 @@ void
|
||||
MainLoop::start()
|
||||
{
|
||||
s_instance = this;
|
||||
Log.notice("Welcome to 🌕 Figment 0.3.0");
|
||||
Log.notice("*** Starting %d tasks...", scheduler.tasks.size());
|
||||
Serial.flush();
|
||||
for(auto task: scheduler) {
|
||||
|
Loading…
Reference in New Issue
Block a user