drivers/ccs811: fix build issues on AVR platform
This commit is contained in:
parent
8a7edeb193
commit
d513e9d3d3
@ -530,8 +530,7 @@ static int _reg_read(const ccs811_t *dev, uint8_t reg, uint8_t *data, uint32_t l
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
DEBUG_DEV("could not read %"PRIu32" bytes from sensor registers "
|
DEBUG_DEV("could not read %"PRIu32" bytes from sensor registers "
|
||||||
"starting at addr %02x, reason %d (%s)",
|
"starting at addr %02x, reason %i", dev, len, reg, res);
|
||||||
dev, len, reg, res, strerror(res * -1));
|
|
||||||
return -CCS811_ERROR_I2C;
|
return -CCS811_ERROR_I2C;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -587,8 +586,7 @@ static int _reg_write(const ccs811_t *dev, uint8_t reg, uint8_t *data, uint32_t
|
|||||||
|
|
||||||
if (res != CCS811_OK) {
|
if (res != CCS811_OK) {
|
||||||
DEBUG_DEV("could not write %"PRIu32" bytes to sensor registers "
|
DEBUG_DEV("could not write %"PRIu32" bytes to sensor registers "
|
||||||
"starting at addr %02x, reason %i (%s)",
|
"starting at addr %02x, reason %i", dev, len, reg, res);
|
||||||
dev, len, reg, res, strerror(res * -1));
|
|
||||||
return -CCS811_ERROR_I2C;
|
return -CCS811_ERROR_I2C;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
#define CCS811_H
|
#define CCS811_H
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include "periph/gpio.h"
|
||||||
#include "periph/i2c.h"
|
#include "periph/i2c.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user