mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Feed WDT between doing ESP32 touchpad measurements (#2720)
This commit is contained in:
parent
ab506b09fe
commit
f4a140e126
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
#ifdef USE_ESP32
|
#ifdef USE_ESP32
|
||||||
|
|
||||||
#include "esp32_touch.h"
|
#include "esp32_touch.h"
|
||||||
|
#include "esphome/core/application.h"
|
||||||
#include "esphome/core/log.h"
|
#include "esphome/core/log.h"
|
||||||
#include "esphome/core/hal.h"
|
#include "esphome/core/hal.h"
|
||||||
|
|
||||||
|
@ -125,6 +126,8 @@ void ESP32TouchComponent::loop() {
|
||||||
if (should_print) {
|
if (should_print) {
|
||||||
ESP_LOGD(TAG, "Touch Pad '%s' (T%u): %u", child->get_name().c_str(), child->get_touch_pad(), value);
|
ESP_LOGD(TAG, "Touch Pad '%s' (T%u): %u", child->get_name().c_str(), child->get_touch_pad(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
App.feed_wdt();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (should_print) {
|
if (should_print) {
|
||||||
|
|
Loading…
Reference in a new issue