Skip to content

Commit 075e829

Browse files
authored
Update i2c_slave.c: clock stretching comment fix (#1811)
* Update i2c_slave.c: clock stretching comment fix This changed since 8991487 * Update i2c_slave.c
1 parent ff373b3 commit 075e829

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rp2_common/pico_i2c_slave/i2c_slave.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ void i2c_slave_init(i2c_inst_t *i2c, uint8_t address, i2c_slave_handler_t handle
6262
slave->handler = handler;
6363

6464
// Note: The I2C slave does clock stretching implicitly after a RD_REQ, while the Tx FIFO is empty.
65-
// There is also an option to enable clock stretching while the Rx FIFO is full, but we leave it
66-
// disabled since the Rx FIFO should never fill up (unless slave->handler() is way too slow).
65+
// Clock stretching while the Rx FIFO is full is also enabled by default.
6766
i2c_set_slave_mode(i2c, true, address);
6867

6968
i2c_hw_t *hw = i2c_get_hw(i2c);

0 commit comments

Comments
 (0)