diff --git a/esphome/components/mpr121/mpr121.h b/esphome/components/mpr121/mpr121.h index 9948f4701c..e68595948a 100644 --- a/esphome/components/mpr121/mpr121.h +++ b/esphome/components/mpr121/mpr121.h @@ -51,14 +51,14 @@ class MPR121Channel : public binary_sensor::BinarySensor { void process(uint16_t data) { this->publish_state(static_cast(data & (1 << this->channel_))); } int get_channel() { return this->channel_; }; void set_touch_threshold(uint8_t touch_threshold) { this->touch_threshold_ = touch_threshold; }; - void set_release_threshold(uint8_t release_threshold) { this->release_threshold = release_threshold; }; + void set_release_threshold(uint8_t release_threshold) { this->release_threshold_ = release_threshold; }; uint8_t get_touch_threshold() { return this->touch_threshold_; }; - uint8_t get_release_threshold() { return this->release_threshold; }; + uint8_t get_release_threshold() { return this->release_threshold_; }; protected: uint8_t channel_{0}; uint8_t touch_threshold_{12}; - uint8_t release_threshold{6}; + uint8_t release_threshold_{6}; }; class MPR121Component : public Component, public i2c::I2CDevice {