mirror of
https://github.com/esphome/esphome.git
synced 2025-09-15 09:42:19 +01:00
cleanup
This commit is contained in:
@@ -118,14 +118,6 @@ void ESP32TouchComponent::setup() {
|
|||||||
|
|
||||||
// Enable touch pad interrupt
|
// Enable touch pad interrupt
|
||||||
touch_pad_intr_enable();
|
touch_pad_intr_enable();
|
||||||
|
|
||||||
// Initialize all sensors as not touched
|
|
||||||
// The ISR will immediately update with actual state
|
|
||||||
for (auto *child : this->children_) {
|
|
||||||
// Initialize as not touched
|
|
||||||
child->last_state_ = false;
|
|
||||||
child->publish_initial_state(false);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ESP32TouchComponent::dump_config() {
|
void ESP32TouchComponent::dump_config() {
|
||||||
|
@@ -55,8 +55,6 @@ class ESP32TouchComponent : public Component {
|
|||||||
void set_iir_filter(uint32_t iir_filter) { this->iir_filter_ = iir_filter; }
|
void set_iir_filter(uint32_t iir_filter) { this->iir_filter_ = iir_filter; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint32_t component_touch_pad_read(touch_pad_t tp);
|
|
||||||
|
|
||||||
void setup() override;
|
void setup() override;
|
||||||
void dump_config() override;
|
void dump_config() override;
|
||||||
void loop() override;
|
void loop() override;
|
||||||
|
Reference in New Issue
Block a user