Initial driver for HTU21DF

This commit is contained in:
Pim van Pelt
2018-04-02 22:36:46 +02:00
parent aa73394f0d
commit 9f0cdbb821
3 changed files with 99 additions and 6 deletions

View File

@ -96,6 +96,7 @@ struct mgos_sht31 *mgos_sht31_create(struct mgos_i2c *i2c, uint8_t i2caddr) {
return sensor;
}
LOG(LL_ERROR, ("Failed to create SHT31 at I2C 0x%02x", i2caddr));
free(sensor);
return NULL;
}