1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 06:32:22 +01:00

[debug] Show source of last software reboot (#8595)

This commit is contained in:
Clyde Stubbs
2025-05-05 14:31:37 +10:00
committed by GitHub
parent e7a2b395fd
commit b8d83d0765
6 changed files with 37 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
#include "scheduler.h"
#include "application.h"
#include "esphome/core/defines.h"
#include "esphome/core/log.h"
#include "esphome/core/helpers.h"
@@ -215,6 +217,7 @@ void HOT Scheduler::call() {
this->pop_raw_();
continue;
}
App.set_current_component(item->component);
#ifdef ESPHOME_DEBUG_SCHEDULER
ESP_LOGV(TAG, "Running %s '%s/%s' with interval=%" PRIu32 " next_execution=%" PRIu64 " (now=%" PRIu64 ")",