Skip to content

Commit

Permalink
[FAP] htu21d falsely reading temp as humidity
Browse files Browse the repository at this point in the history
compiled and tested by blowing onto the sensor.

fixes #174
  • Loading branch information
GottZ authored Nov 20, 2022
1 parent 17cb753 commit a5e3df0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5e3df0

Please # to comment.