Skip to content

Commit 2211461

Browse files
authored
Merge pull request #11828 from martinbudden/fix_shadow_warning_loop
fix(esp32): Compiler warning - loop variable `a` shadows previous instance of `a` in function `i2c_slave_gpio_mode`
2 parents 753890c + 02469d4 commit 2211461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-i2c-slave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ static bool i2c_slave_check_line_state(int8_t sda, int8_t scl) {
618618
log_w("Recovered after %d Cycles", a);
619619
gpio_set_level(sda, 0); // start
620620
i2c_slave_delay_us(5);
621-
for (uint8_t a = 0; a < 9; a++) {
621+
for (uint8_t b = 0; b < 9; b++) {
622622
gpio_set_level(scl, 1);
623623
i2c_slave_delay_us(5);
624624
gpio_set_level(scl, 0);

0 commit comments

Comments
 (0)