Skip to content

Commit 360c876

Browse files
committed
add flag to i.mx port
1 parent 189f2d5 commit 360c876

File tree

1 file changed

+2
-0
lines changed
  • ports/mimxrt10xx/common-hal/busio

1 file changed

+2
-0
lines changed

ports/mimxrt10xx/common-hal/busio/I2C.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,13 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
9898

9999
LPI2C_MasterInit(self->i2c, &config, I2C_CLOCK_FREQ);
100100

101+
#if CIRCUITPY_REQUIRE_I2C_PULLUPS
101102
// if (!gpio_get_pin_level(sda->number) || !gpio_get_pin_level(scl->number)) {
102103
// reset_pin_number(sda->number);
103104
// reset_pin_number(scl->number);
104105
// mp_raise_RuntimeError(translate("SDA or SCL needs a pull up"));
105106
// }
107+
#endif
106108

107109
claim_pin(self->sda_pin->pin);
108110
claim_pin(self->scl_pin->pin);

0 commit comments

Comments
 (0)