Skip to content
Snippets Groups Projects
Commit 92274b0b authored by schneider's avatar schneider
Browse files

fix(bme680): Check for NULL pointer as mentioned in docs

parent 9f29b867
No related branches found
No related tags found
1 merge request!380BSEC support
......@@ -172,6 +172,10 @@ int epic_bme680_read_sensors(struct bme680_sensor_data *data)
return -EINVAL;
}
if(data == NULL) {
return -EFAULT;
}
uint16_t profile_dur = 0;
bme680_get_profile_dur(&profile_dur, &bme);
......
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