diff --git a/esphome/core/helpers.cpp b/esphome/core/helpers.cpp index 240d5e3e45..a792fef75f 100644 --- a/esphome/core/helpers.cpp +++ b/esphome/core/helpers.cpp @@ -795,7 +795,6 @@ void HighFrequencyLoopRequester::stop() { num_requests--; this->started_ = false; } -bool HighFrequencyLoopRequester::is_high_frequency() { return num_requests > 0; } std::string get_mac_address() { uint8_t mac[6]; diff --git a/esphome/core/helpers.h b/esphome/core/helpers.h index 4422c42988..a7698b6af1 100644 --- a/esphome/core/helpers.h +++ b/esphome/core/helpers.h @@ -1739,7 +1739,7 @@ class HighFrequencyLoopRequester { void stop(); /// Check whether the loop is running continuously. - static bool is_high_frequency(); + static bool is_high_frequency() { return num_requests > 0; } protected: bool started_{false};