Apply suggestion from @bdraco

This commit is contained in:
J. Nick Koston
2026-04-21 05:57:35 +02:00
committed by GitHub
parent b39ea3c19f
commit 46b0c9331b
+2 -1
View File
@@ -611,7 +611,8 @@ inline uint32_t ESPHOME_ALWAYS_INLINE Application::before_loop_tasks_(uint32_t l
return last_op_end_time;
}
inline void ESPHOME_ALWAYS_INLINE __attribute__((optimize("O2"))) Application::loop() {
inline void ESPHOME_ALWAYS_INLINE __attribute__((optimize("O2"))) // NOLINT(clang-diagnostic-unknown-attributes)
Application::loop() {
#ifdef USE_RUNTIME_STATS
// Capture the start of the active (non-sleeping) portion of this iteration.
// Used to derive main-loop overhead = active time Σ(component time)