From f5d98bf4d956062c7f0d47b230362b829f931e8f Mon Sep 17 00:00:00 2001 From: Gustavo de Souza dos Reis Date: Thu, 26 Oct 2023 10:58:08 -0300 Subject: [PATCH] Read i2c address from i2c_chip_rtm_map instead of i2c_chip_map --- modules/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/i2c.c b/modules/i2c.c index 2831403ee..2d33ebba8 100644 --- a/modules/i2c.c +++ b/modules/i2c.c @@ -110,7 +110,7 @@ bool i2c_take_by_chipid( uint8_t chip_id, uint8_t *i2c_address, uint8_t *i2c_int } bus_id = i2c_chip_rtm_map[chip_id-64].bus_id; if ( i2c_address != NULL ) { - *i2c_address = i2c_chip_map[chip_id-64].i2c_address; + *i2c_address = i2c_chip_rtm_map[chip_id-64].i2c_address; } #endif