1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-28 05:33:53 +00:00

Always execute i2c bus recovery on setup (#2379)

This commit is contained in:
Christian Taedcke
2021-09-23 20:11:40 +02:00
committed by GitHub
parent 210a9a4162
commit 963b28181f
4 changed files with 72 additions and 0 deletions

View File

@@ -24,6 +24,9 @@ class IDFI2CBus : public I2CBus, public Component {
void set_scl_pullup_enabled(bool scl_pullup_enabled) { scl_pullup_enabled_ = scl_pullup_enabled; }
void set_frequency(uint32_t frequency) { frequency_ = frequency; }
private:
void recover();
protected:
i2c_port_t port_;
bool scan_;