mirror of
https://github.com/esphome/esphome.git
synced 2026-09-15 17:18:40 +00:00
Fix clang-tidy: rename setup_interrupt_pin_ to setup_interrupt_pin
This commit is contained in:
@@ -23,7 +23,7 @@ void MCP23008::setup() {
|
||||
this->write_reg(mcp23x08_base::MCP23X08_IOCON, iocon | IOCON_ODR);
|
||||
}
|
||||
|
||||
this->setup_interrupt_pin_();
|
||||
this->setup_interrupt_pin();
|
||||
}
|
||||
|
||||
void MCP23008::dump_config() { ESP_LOGCONFIG(TAG, "MCP23008:"); }
|
||||
|
||||
@@ -25,7 +25,7 @@ void MCP23017::setup() {
|
||||
this->write_reg(mcp23x17_base::MCP23X17_IOCONB, iocon | IOCON_ODR);
|
||||
}
|
||||
|
||||
this->setup_interrupt_pin_();
|
||||
this->setup_interrupt_pin();
|
||||
}
|
||||
|
||||
void MCP23017::dump_config() { ESP_LOGCONFIG(TAG, "MCP23017:"); }
|
||||
|
||||
@@ -35,7 +35,7 @@ void MCP23S08::setup() {
|
||||
this->write_reg(mcp23x08_base::MCP23X08_IOCON, IOCON_SEQOP | IOCON_HAEN | IOCON_ODR);
|
||||
}
|
||||
|
||||
this->setup_interrupt_pin_();
|
||||
this->setup_interrupt_pin();
|
||||
}
|
||||
|
||||
void MCP23S08::dump_config() {
|
||||
|
||||
@@ -43,7 +43,7 @@ void MCP23S17::setup() {
|
||||
this->write_reg(mcp23x17_base::MCP23X17_IOCONB, IOCON_SEQOP | IOCON_HAEN | IOCON_ODR);
|
||||
}
|
||||
|
||||
this->setup_interrupt_pin_();
|
||||
this->setup_interrupt_pin();
|
||||
}
|
||||
|
||||
void MCP23S17::dump_config() {
|
||||
|
||||
@@ -18,7 +18,7 @@ template<uint8_t N> class MCP23XXXBase : public Component, public gpio_expander:
|
||||
void set_interrupt_pin(InternalGPIOPin *pin) { this->interrupt_pin_ = pin; }
|
||||
float get_setup_priority() const override { return setup_priority::IO; }
|
||||
|
||||
void setup_interrupt_pin_() {
|
||||
void setup_interrupt_pin() {
|
||||
if (this->interrupt_pin_ != nullptr) {
|
||||
this->interrupt_pin_->setup();
|
||||
this->interrupt_pin_->attach_interrupt(&MCP23XXXBase::gpio_intr, this, gpio::INTERRUPT_FALLING_EDGE);
|
||||
|
||||
Reference in New Issue
Block a user