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.
2 parents 5484a2d + 0552ce2 commit df13befCopy full SHA for df13bef
ports/esp32s2/common-hal/busio/I2C.c
@@ -88,7 +88,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
88
}
89
#endif
90
91
- self->xSemaphore = xSemaphoreCreateMutexStatic(&self->xSemaphoreBuffer);
+ self->xSemaphore = xSemaphoreCreateMutex();
92
if (self->xSemaphore == NULL) {
93
mp_raise_RuntimeError(translate("Unable to create lock"));
94
ports/esp32s2/common-hal/busio/I2C.h
@@ -40,7 +40,6 @@ typedef struct {
40
const mcu_pin_obj_t *sda_pin;
41
i2c_port_t i2c_num;
42
SemaphoreHandle_t xSemaphore;
43
- StaticSemaphore_t xSemaphoreBuffer;
44
bool has_lock;
45
} busio_i2c_obj_t;
46
0 commit comments