Skip to content

Commit 8adb0ec

Browse files
committed
Fix loop bounds
1 parent 2433c95 commit 8adb0ec

File tree

1 file changed

+1
-1
lines changed
  • ports/broadcom/common-hal/busio

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void reset_i2c(void) {
5555
never_reset_i2c[7] = true;
5656
i2c_in_use[7] = true;
5757
#endif
58-
for (size_t i = 0; i < 2; i++) {
58+
for (size_t i = 0; i < NUM_I2C; i++) {
5959
if (never_reset_i2c[i]) {
6060
continue;
6161
}

0 commit comments

Comments
 (0)