Home
last modified time | relevance | path

Searched refs:hum_dec (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/humidity/
H A Ddht11.c125 unsigned char temp_int, temp_dec, hum_int, hum_dec, checksum; in dht11_decode() local
140 hum_dec = dht11_decode_byte(&bits[8]); in dht11_decode()
145 if (((hum_int + hum_dec + temp_int + temp_dec) & 0xff) != checksum) { in dht11_decode()
154 dht11->humidity = ((hum_int << 8) + hum_dec) * 100; in dht11_decode()
155 } else if (temp_dec == 0 && hum_dec == 0) { /* DHT11 */ in dht11_decode()
161 hum_int, hum_dec, temp_int, temp_dec); in dht11_decode()