Skip to content

Commit a316352

Browse files
authored
fix bad edit
Add a comment regarding pull-up checks for I2C.
1 parent 2cf2ebd commit a316352

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • ports/raspberrypi/common-hal/busio

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ 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
5152
// Don't bother to check for pull-ups when the internal pull-ups are used.
5253
// TODO: maybe check the pull-up efficacy with timing scaled by frequency
5354
// as is done in espressif, instead of using a fixed 3us.

0 commit comments

Comments
 (0)