Skip to content

Commit

Permalink
soft_i2c: Loop iteration variable: Conform to C89
Browse files Browse the repository at this point in the history
  • Loading branch information
ramangopalan authored and mysterywolf committed Nov 26, 2023
1 parent 3ea3f34 commit 4e65607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/drivers/i2c/soft_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,9 @@ int rt_soft_i2c_init(void)
{
int err = RT_EOK;
struct rt_soft_i2c *obj;
int i;

for(int i = 0; i < sizeof(i2c_bus_obj) / sizeof(i2c_bus_obj[0]); i++)
for(i = 0; i < sizeof(i2c_bus_obj) / sizeof(i2c_bus_obj[0]); i++)
{
struct soft_i2c_config *cfg = &i2c_cfg[i];

Expand Down

0 comments on commit 4e65607

Please sign in to comment.