mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fix protected member naming
This commit is contained in:
parent
fc7fb0d0de
commit
beb198c015
@ -51,14 +51,14 @@ class MPR121Channel : public binary_sensor::BinarySensor {
|
|||||||
void process(uint16_t data) { this->publish_state(static_cast<bool>(data & (1 << this->channel_))); }
|
void process(uint16_t data) { this->publish_state(static_cast<bool>(data & (1 << this->channel_))); }
|
||||||
int get_channel() { return this->channel_; };
|
int get_channel() { return this->channel_; };
|
||||||
void set_touch_threshold(uint8_t touch_threshold) { this->touch_threshold_ = touch_threshold; };
|
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_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:
|
protected:
|
||||||
uint8_t channel_{0};
|
uint8_t channel_{0};
|
||||||
uint8_t touch_threshold_{12};
|
uint8_t touch_threshold_{12};
|
||||||
uint8_t release_threshold{6};
|
uint8_t release_threshold_{6};
|
||||||
};
|
};
|
||||||
|
|
||||||
class MPR121Component : public Component, public i2c::I2CDevice {
|
class MPR121Component : public Component, public i2c::I2CDevice {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user