Skip to content
Snippets Groups Projects
Unverified Commit e8fc13c8 authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #10708 from keestux/eliminate-casts-ccs811

drivers/ccs811: remove unnecessary casts
parents 53a887ce fa431c4e
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ static int read(const ccs811_t *dev, uint16_t *iaq_tvoc, uint16_t *iaq_eco2) ...@@ -29,7 +29,7 @@ static int read(const ccs811_t *dev, uint16_t *iaq_tvoc, uint16_t *iaq_eco2)
{ {
if (!_data_ready) { if (!_data_ready) {
/* if no data were ready yet, test for new data */ /* if no data were ready yet, test for new data */
if (ccs811_data_ready((ccs811_t *)dev) == CCS811_OK) { if (ccs811_data_ready(dev) == CCS811_OK) {
_data_ready = true; _data_ready = true;
} }
else { else {
...@@ -37,7 +37,7 @@ static int read(const ccs811_t *dev, uint16_t *iaq_tvoc, uint16_t *iaq_eco2) ...@@ -37,7 +37,7 @@ static int read(const ccs811_t *dev, uint16_t *iaq_tvoc, uint16_t *iaq_eco2)
} }
} }
int res = ccs811_read_iaq((ccs811_t *)dev, iaq_tvoc, iaq_eco2, NULL, NULL); int res = ccs811_read_iaq(dev, iaq_tvoc, iaq_eco2, NULL, NULL);
/* in case of CCS811_ERROR_NO_NEW_DATA last valid data are returned */ /* in case of CCS811_ERROR_NO_NEW_DATA last valid data are returned */
return (res == CCS811_OK || return (res == CCS811_OK ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment