Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/iio/humidity/
Ddht11.c96 unsigned char temp_int, temp_dec, hum_int, hum_dec, checksum; in dht11_decode() local
114 temp_dec = dht11_decode_byte(&timing[24], threshold); in dht11_decode()
117 if (((hum_int + hum_dec + temp_int + temp_dec) & 0xff) != checksum) in dht11_decode()
122 dht11->temperature = (((temp_int & 0x7f) << 8) + temp_dec) * in dht11_decode()
125 } else if (temp_dec == 0 && hum_dec == 0) { /* DHT11 */ in dht11_decode()
131 hum_int, hum_dec, temp_int, temp_dec); in dht11_decode()