Skip to content

Commit a5e3df0

Browse files
authored
[FAP] htu21d falsely reading temp as humidity
compiled and tested by blowing onto the sensor. fixes #174
1 parent 17cb753 commit a5e3df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/plugins/htu21d_temp_sensor/temperature_sensor.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static bool temperature_sensor_fetch_data(double* temperature, double* humidity)
113113
*temperature = (float)(adc_raw * 175.72 / 65536.00) - 46.85;
114114

115115
// Fetch humidity
116-
ret = temperature_sensor_cmd((uint8_t)HTU21D_CMD_TEMPERATURE, buffer, 2);
116+
ret = temperature_sensor_cmd((uint8_t)HTU21D_CMD_HUMIDITY, buffer, 2);
117117

118118
if(ret) {
119119
// Calculate humidity

0 commit comments

Comments
 (0)