mirror of
https://github.com/esphome/esphome.git
synced 2025-08-07 02:47:47 +00:00
Merge remote-tracking branch 'upstream/loop_enable_disable_log_spam' into idf_webserver_ota
This commit is contained in:
commit
101901fdb8
@ -376,7 +376,7 @@ void Application::enable_pending_loops_() {
|
|||||||
|
|
||||||
// Clear the pending flag and enable the loop
|
// Clear the pending flag and enable the loop
|
||||||
component->pending_enable_loop_ = false;
|
component->pending_enable_loop_ = false;
|
||||||
ESP_LOGD(TAG, "%s loop enabled from ISR", component->get_component_source());
|
ESP_LOGVV(TAG, "%s loop enabled from ISR", component->get_component_source());
|
||||||
component->component_state_ &= ~COMPONENT_STATE_MASK;
|
component->component_state_ &= ~COMPONENT_STATE_MASK;
|
||||||
component->component_state_ |= COMPONENT_STATE_LOOP;
|
component->component_state_ |= COMPONENT_STATE_LOOP;
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ void Component::mark_failed() {
|
|||||||
}
|
}
|
||||||
void Component::disable_loop() {
|
void Component::disable_loop() {
|
||||||
if ((this->component_state_ & COMPONENT_STATE_MASK) != COMPONENT_STATE_LOOP_DONE) {
|
if ((this->component_state_ & COMPONENT_STATE_MASK) != COMPONENT_STATE_LOOP_DONE) {
|
||||||
ESP_LOGD(TAG, "%s loop disabled", this->get_component_source());
|
ESP_LOGVV(TAG, "%s loop disabled", this->get_component_source());
|
||||||
this->component_state_ &= ~COMPONENT_STATE_MASK;
|
this->component_state_ &= ~COMPONENT_STATE_MASK;
|
||||||
this->component_state_ |= COMPONENT_STATE_LOOP_DONE;
|
this->component_state_ |= COMPONENT_STATE_LOOP_DONE;
|
||||||
App.disable_component_loop_(this);
|
App.disable_component_loop_(this);
|
||||||
@ -157,7 +157,7 @@ void Component::disable_loop() {
|
|||||||
}
|
}
|
||||||
void Component::enable_loop() {
|
void Component::enable_loop() {
|
||||||
if ((this->component_state_ & COMPONENT_STATE_MASK) == COMPONENT_STATE_LOOP_DONE) {
|
if ((this->component_state_ & COMPONENT_STATE_MASK) == COMPONENT_STATE_LOOP_DONE) {
|
||||||
ESP_LOGD(TAG, "%s loop enabled", this->get_component_source());
|
ESP_LOGVV(TAG, "%s loop enabled", this->get_component_source());
|
||||||
this->component_state_ &= ~COMPONENT_STATE_MASK;
|
this->component_state_ &= ~COMPONENT_STATE_MASK;
|
||||||
this->component_state_ |= COMPONENT_STATE_LOOP;
|
this->component_state_ |= COMPONENT_STATE_LOOP;
|
||||||
App.enable_component_loop_(this);
|
App.enable_component_loop_(this);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user