Skip to content

Commit

Permalink
mcu/pic32: Fix I2C_4 configuration typo
Browse files Browse the repository at this point in the history
For I2C_4 (if enabled) configuration was using i2c_3_cfg data
instead of i2c_4_cfg, it is now corrected.

Signed-off-by: Jerzy Kasenberg <jerzy.kasenberg@codecoup.pl>
  • Loading branch information
kasjer committed Mar 15, 2024
1 parent 0810b50 commit 6d95d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/mcu/microchip/pic32mz/src/pic32mz_periph.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pic32mz_periph_i2c_devs(void)
}

if (MYNEWT_VAL(I2C_4)) {
rc = hal_i2c_init(4, (void *)&i2c_3_cfg);
rc = hal_i2c_init(4, (void *)&i2c_4_cfg);
assert(rc == 0);
}
}
Expand Down

0 comments on commit 6d95d8c

Please sign in to comment.