From 6d95d8c69d38fc6b71f948cb0790884986602752 Mon Sep 17 00:00:00 2001 From: Jerzy Kasenberg Date: Fri, 15 Mar 2024 12:36:45 +0100 Subject: [PATCH] mcu/pic32: Fix I2C_4 configuration typo 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 --- hw/mcu/microchip/pic32mz/src/pic32mz_periph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/mcu/microchip/pic32mz/src/pic32mz_periph.c b/hw/mcu/microchip/pic32mz/src/pic32mz_periph.c index 7168c1495a..ecd20161aa 100644 --- a/hw/mcu/microchip/pic32mz/src/pic32mz_periph.c +++ b/hw/mcu/microchip/pic32mz/src/pic32mz_periph.c @@ -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); } }