mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
drivers/bme680: fix conflict with libc function name
This commit is contained in:
parent
cde098f60e
commit
b9ed7e9ffd
@ -54,7 +54,7 @@ static unsigned _dev2index (const bme680_t *dev)
|
||||
return BME680_NUMOF;
|
||||
}
|
||||
|
||||
static int read(int dev)
|
||||
static int _read(int dev)
|
||||
{
|
||||
/* measure and read sensor values */
|
||||
int res;
|
||||
@ -101,7 +101,7 @@ static int read_temp(const void *dev, phydat_t *data)
|
||||
}
|
||||
|
||||
/* either local variable is valid or fetching it was successful */
|
||||
if (_temp_valid[dev_index] || read(dev_index) == BME680_OK) {
|
||||
if (_temp_valid[dev_index] || _read(dev_index) == BME680_OK) {
|
||||
/* mark local variable as invalid */
|
||||
_temp_valid[dev_index] = false;
|
||||
|
||||
@ -123,7 +123,7 @@ static int read_press(const void *dev, phydat_t *data)
|
||||
}
|
||||
|
||||
/* either local variable is valid or fetching it was successful */
|
||||
if (_press_valid[dev_index] || read(dev_index) == BME680_OK) {
|
||||
if (_press_valid[dev_index] || _read(dev_index) == BME680_OK) {
|
||||
/* mark local variable as invalid */
|
||||
_press_valid[dev_index] = false;
|
||||
|
||||
@ -145,7 +145,7 @@ static int read_hum(const void *dev, phydat_t *data)
|
||||
}
|
||||
|
||||
/* either local variable is valid or fetching it was successful */
|
||||
if (_hum_valid[dev_index] || read(dev_index) == BME680_OK) {
|
||||
if (_hum_valid[dev_index] || _read(dev_index) == BME680_OK) {
|
||||
/* mark local variable as invalid */
|
||||
_hum_valid[dev_index] = false;
|
||||
|
||||
@ -167,7 +167,7 @@ static int read_gas(const void *dev, phydat_t *data)
|
||||
}
|
||||
|
||||
/* either local variable is valid or fetching it was successful */
|
||||
if (_gas_valid[dev_index] || read(dev_index) == BME680_OK) {
|
||||
if (_gas_valid[dev_index] || _read(dev_index) == BME680_OK) {
|
||||
/* mark local variable as invalid */
|
||||
_gas_valid[dev_index] = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user