mirror of
https://github.com/esphome/esphome.git
synced 2025-08-01 16:07:47 +00:00
Print all children
This commit is contained in:
parent
a794a8f3e4
commit
14e6918eb1
@ -294,7 +294,7 @@ uint32_t ESP32TouchComponent::component_touch_pad_read(touch_pad_t tp) {
|
|||||||
void ESP32TouchComponent::loop() {
|
void ESP32TouchComponent::loop() {
|
||||||
const uint32_t now = App.get_loop_component_start_time();
|
const uint32_t now = App.get_loop_component_start_time();
|
||||||
bool should_print = this->setup_mode_ && now - this->setup_mode_last_log_print_ > 250;
|
bool should_print = this->setup_mode_ && now - this->setup_mode_last_log_print_ > 250;
|
||||||
if (should_print) {
|
if (should_print && this->current_child_ == this->children_.size() - 1) {
|
||||||
// Avoid spamming logs
|
// Avoid spamming logs
|
||||||
this->setup_mode_last_log_print_ = now;
|
this->setup_mode_last_log_print_ = now;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user