mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-05 12:30:28 +02:00
Always execute i2c bus recovery on setup (#2379)
This commit is contained in:
committed by
GitHub
parent
210a9a4162
commit
963b28181f
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user