From d513e9d3d3bb8ba445735211b3d98b367bec89e9 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 13 Dec 2018 11:43:20 +0100 Subject: [PATCH] drivers/ccs811: fix build issues on AVR platform --- drivers/ccs811/ccs811.c | 6 ++---- drivers/include/ccs811.h | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/ccs811/ccs811.c b/drivers/ccs811/ccs811.c index 86251f72aa..891a46d7fd 100644 --- a/drivers/ccs811/ccs811.c +++ b/drivers/ccs811/ccs811.c @@ -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; } diff --git a/drivers/include/ccs811.h b/drivers/include/ccs811.h index 4a4a4f533f..9983e96e52 100644 --- a/drivers/include/ccs811.h +++ b/drivers/include/ccs811.h @@ -18,6 +18,7 @@ #define CCS811_H #include +#include "periph/gpio.h" #include "periph/i2c.h" #ifdef __cplusplus