Browse Source

bmp180: fixed buffer write

master
Franz Levin 2 years ago
parent
commit
74e1c068f8
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      bmp180.c

+ 1
- 4
bmp180.c View File

@ -135,9 +135,6 @@ int32_t ICACHE_FLASH_ATTR bmp180_read_pressure_raw(bmp180_t* bmp180, uint8_t oss
I2C_DELAY_US(delay);
return read24(bmp180, BMP180_REG_MSB) >> (8 - oss);
out:
return 0;
}
static int16_t ICACHE_FLASH_ATTR bmp180_read_temp(bmp180_t* bmp180)
@ -236,7 +233,7 @@ bool ICACHE_FLASH_ATTR bmp180_init(driver_params_t* params, driver_bus_t* bus)
bmp180->i2c = i2c;
buffer[1] = BMP180_REG_ID;
buffer[0] = BMP180_REG_ID;
res = i2c_transmit(bmp180->i2c, I2C_ADDRESS, buffer, 1);
if (res != 0)


Loading…
Cancel
Save