1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-25 14:42:21 +01:00

Store source package in Component for debugging (#2070)

This commit is contained in:
Otto Winter
2021-08-23 20:49:19 +02:00
committed by GitHub
parent 1c1ad32610
commit 1b89174558
7 changed files with 91 additions and 14 deletions

View File

@@ -155,7 +155,10 @@ void ICACHE_RAM_ATTR HOT Scheduler::call() {
// Warning: During f(), a lot of stuff can happen, including:
// - timeouts/intervals get added, potentially invalidating vector pointers
// - timeouts/intervals get cancelled
item->f();
{
WarnIfComponentBlockingGuard guard{item->component};
item->f();
}
}
{