Skip to content
This repository was archived by the owner on Jan 24, 2026. It is now read-only.

Commit fa0addb

Browse files
pcf8574_init_desc: Add missing initialization
This component failed with a Koncony A16 board. It failed during first read from i2c, because of timing configuration rsp. pullup configuration. Reason: The configuration structure was not fully initialized. This pull requests adds the missing configuration.
1 parent a02cd6b commit fa0addb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

components/pcf8574/pcf8574.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ esp_err_t pcf8574_init_desc(i2c_dev_t *dev, uint8_t addr, i2c_port_t port, gpio_
7777
#if HELPER_TARGET_IS_ESP32
7878
dev->cfg.master.clk_speed = I2C_FREQ_HZ;
7979
#endif
80+
dev->cfg.clk_flags = 0;
81+
dev->cfg.scl_pullup_en = false;
82+
dev->cfg.sda_pullup_en = false;
83+
dev->timeout_ticks = I2CDEV_MAX_STRETCH_TIME;
8084

8185
return i2c_dev_create_mutex(dev);
8286
}

0 commit comments

Comments
 (0)