Fix loop bounds

This commit is contained in:
Scott Shawcroft 2021-12-02 10:28:26 -08:00
parent 2433c9572c
commit 8adb0ecd33
No known key found for this signature in database
GPG Key ID: 0DFD512649C052DA
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ void reset_i2c(void) {
never_reset_i2c[7] = true;
i2c_in_use[7] = true;
#endif
for (size_t i = 0; i < 2; i++) {
for (size_t i = 0; i < NUM_I2C; i++) {
if (never_reset_i2c[i]) {
continue;
}