Skip to content

Commit be2a26b

Browse files
authored
set SCL to OUTPUT_OPEN_DRAIN
fixes: #69
1 parent d8b2290 commit be2a26b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: cores/esp32/esp32-hal-i2c.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ i2c_err_t i2cAttachSCL(i2c_t * i2c, int8_t scl)
6767
if(i2c == NULL){
6868
return I2C_ERROR_DEV;
6969
}
70-
pinMode(scl, OUTPUT);
70+
pinMode(scl, OUTPUT_OPEN_DRAIN);
7171
pinMatrixOutAttach(scl, I2C_SCL_IDX(i2c->num), false, false);
7272
pinMatrixInAttach(scl, I2C_SCL_IDX(i2c->num), false);
7373
return I2C_ERROR_OK;

0 commit comments

Comments
 (0)