Skip to content

Commit e7842f1

Browse files
authored
Touch up formarring
1 parent a316352 commit e7842f1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • ports/raspberrypi/common-hal/busio

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
4848
mp_arg_validate_int_max(frequency, 1000000, MP_QSTR_frequency);
4949

5050

51-
#if CIRCUITPY_REQUIRE_I2C_PULLUPS && !CIRCUITPY_I2C_ALLOW_INTERNAL_PULL_UP
5251
// Don't bother to check for pull-ups when the internal pull-ups are used.
52+
#if CIRCUITPY_REQUIRE_I2C_PULLUPS && !CIRCUITPY_I2C_ALLOW_INTERNAL_PULL_UP
53+
5354
// TODO: maybe check the pull-up efficacy with timing scaled by frequency
5455
// as is done in espressif, instead of using a fixed 3us.
56+
5557
// Test that the pins are in a high state. (Hopefully indicating they are pulled up.)
5658
gpio_set_function(sda->number, GPIO_FUNC_SIO);
5759
gpio_set_function(scl->number, GPIO_FUNC_SIO);

0 commit comments

Comments
 (0)