Skip to content

Commit

Permalink
Read i2c address from i2c_chip_rtm_map instead of i2c_chip_map
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavosr8 authored and augustofg committed Oct 26, 2023
1 parent 2eb350d commit f5d98bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f5d98bf

Please sign in to comment.