mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
Merge pull request #175 from GottZ/patch-1
[FAP] htu21d falsely reading temp as humidity
This commit is contained in:
commit
963c6a95f3
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ static bool temperature_sensor_fetch_data(double* temperature, double* humidity)
|
|||
*temperature = (float)(adc_raw * 175.72 / 65536.00) - 46.85;
|
||||
|
||||
// Fetch humidity
|
||||
ret = temperature_sensor_cmd((uint8_t)HTU21D_CMD_TEMPERATURE, buffer, 2);
|
||||
ret = temperature_sensor_cmd((uint8_t)HTU21D_CMD_HUMIDITY, buffer, 2);
|
||||
|
||||
if(ret) {
|
||||
// Calculate humidity
|
||||
|
|
Loading…
Reference in a new issue