mirror of
https://github.com/esphome/esphome.git
synced 2026-09-18 02:28:42 +00:00
Add WarnIfComponentBlockingGuard as friend for runtime_stats_ access
This commit is contained in:
@@ -568,6 +568,7 @@ class Component {
|
||||
volatile bool pending_enable_loop_{false}; ///< ISR-safe flag for enable_loop_soon_any_context
|
||||
#ifdef USE_RUNTIME_STATS
|
||||
friend class runtime_stats::RuntimeStatsCollector;
|
||||
friend class WarnIfComponentBlockingGuard;
|
||||
ComponentRuntimeStats runtime_stats_;
|
||||
#endif
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user