Code formatted, minor fixes (#466)
This commit is contained in:
parent
8a474d749d
commit
5fa48d0298
28 changed files with 623 additions and 608 deletions
|
@ -38,7 +38,7 @@
|
|||
static int bmp180_readRegister16(i2c_dev_t *dev, uint8_t reg, int16_t *r)
|
||||
{
|
||||
uint8_t d[] = { 0, 0 };
|
||||
int error ;
|
||||
int error;
|
||||
|
||||
if ((error = i2c_slave_read(dev->bus, dev->addr, ®, d, 2)))
|
||||
return error;
|
||||
|
@ -49,7 +49,7 @@ static int bmp180_readRegister16(i2c_dev_t *dev, uint8_t reg, int16_t *r)
|
|||
|
||||
static int bmp180_start_Messurement(i2c_dev_t *dev, uint8_t cmd)
|
||||
{
|
||||
uint8_t reg = BMP180_CONTROL_REG ;
|
||||
uint8_t reg = BMP180_CONTROL_REG;
|
||||
|
||||
return i2c_slave_write(dev->bus, dev->addr, ®, &cmd, 1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue