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:
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