Fix: Open/clode correct gpio's.

This commit is contained in:
Thomas Klaehn 2019-07-22 17:27:46 +02:00
parent 70431f90d0
commit 9249041ee5

View File

@ -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;
}