mirror of
https://github.com/esphome/esphome.git
synced 2026-03-04 11:48:21 -07:00
[core] Inline HighFrequencyLoopRequester::is_high_frequency() (#14423)
This commit is contained in:
@@ -794,7 +794,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];
|
||||
|
||||
@@ -1732,7 +1732,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};
|
||||
|
||||
Reference in New Issue
Block a user