We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 747b6e8 commit 03141d4Copy full SHA for 03141d4
ports/espressif/common-hal/busio/I2C.c
@@ -82,6 +82,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
82
self->sda_pin = sda;
83
self->scl_pin = scl;
84
self->i2c_num = peripherals_i2c_get_free_num();
85
+ self->has_lock = 0;
86
87
if (self->i2c_num == I2C_NUM_MAX) {
88
mp_raise_ValueError(translate("All I2C peripherals are in use"));
0 commit comments