Skip to content

Commit 02469d4

Browse files
committed
Fix shadow warning - loop variable a shadows previous instance of a.
1 parent d136bce commit 02469d4

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)