Fix: Open/clode correct gpio's.
This commit is contained in:
parent
9b8936af89
commit
fe1d96853c
@ -19,7 +19,7 @@ int i2c_open(const struct i2c_bb *i2c)
|
||||
assert(NULL != i2c);
|
||||
|
||||
res = gpio_open(i2c->sda);
|
||||
res |= gpio_open(i2c->sda);
|
||||
res |= gpio_open(i2c->scl);
|
||||
|
||||
return res;
|
||||
}
|
||||
@ -31,7 +31,7 @@ int i2c_close(const struct i2c_bb *i2c)
|
||||
assert(NULL != i2c);
|
||||
|
||||
res = gpio_close(i2c->sda);
|
||||
res |= gpio_close(i2c->sda);
|
||||
res |= gpio_close(i2c->scl);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user