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