We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbefdbb commit d3f2c87Copy full SHA for d3f2c87
cores/esp32/esp32-hal-i2c.c
@@ -67,7 +67,7 @@ i2c_err_t i2cAttachSCL(i2c_t * i2c, int8_t scl)
67
if(i2c == NULL){
68
return I2C_ERROR_DEV;
69
}
70
- pinMode(scl, OUTPUT);
+ pinMode(scl, OUTPUT_OPEN_DRAIN);
71
pinMatrixOutAttach(scl, I2C_SCL_IDX(i2c->num), false, false);
72
pinMatrixInAttach(scl, I2C_SCL_IDX(i2c->num), false);
73
return I2C_ERROR_OK;
0 commit comments