1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/ccs811: fix build issues on AVR platform

This commit is contained in:
Gunar Schorcht 2018-12-13 11:43:20 +01:00 committed by Alexandre Abadie
parent 8a7edeb193
commit d513e9d3d3
2 changed files with 3 additions and 4 deletions

View File

@ -530,8 +530,7 @@ static int _reg_read(const ccs811_t *dev, uint8_t reg, uint8_t *data, uint32_t l
}
else {
DEBUG_DEV("could not read %"PRIu32" bytes from sensor registers "
"starting at addr %02x, reason %d (%s)",
dev, len, reg, res, strerror(res * -1));
"starting at addr %02x, reason %i", dev, len, reg, res);
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) {
DEBUG_DEV("could not write %"PRIu32" bytes to sensor registers "
"starting at addr %02x, reason %i (%s)",
dev, len, reg, res, strerror(res * -1));
"starting at addr %02x, reason %i", dev, len, reg, res);
return -CCS811_ERROR_I2C;
}

View File

@ -18,6 +18,7 @@
#define CCS811_H
#include <stdint.h>
#include "periph/gpio.h"
#include "periph/i2c.h"
#ifdef __cplusplus