Searched refs:hum_int (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/iio/humidity/ |
H A D | dht11.c | 126 unsigned char temp_int, temp_dec, hum_int, hum_dec, checksum; in dht11_decode() local 140 hum_int = dht11_decode_byte(bits); in dht11_decode() 146 if (((hum_int + hum_dec + temp_int + temp_dec) & 0xff) != checksum) { in dht11_decode() 152 if (hum_int < 4) { /* DHT22: 100000 = (3*256+232)*100 */ in dht11_decode() 155 dht11->humidity = ((hum_int << 8) + hum_dec) * 100; in dht11_decode() 158 dht11->humidity = hum_int * 1000; in dht11_decode() 162 hum_int, hum_dec, temp_int, temp_dec); in dht11_decode()
|
/kernel/linux/linux-6.6/drivers/iio/humidity/ |
H A D | dht11.c | 125 unsigned char temp_int, temp_dec, hum_int, hum_dec, checksum; in dht11_decode() local 139 hum_int = dht11_decode_byte(bits); in dht11_decode() 145 if (((hum_int + hum_dec + temp_int + temp_dec) & 0xff) != checksum) { in dht11_decode() 151 if (hum_int < 4) { /* DHT22: 100000 = (3*256+232)*100 */ in dht11_decode() 154 dht11->humidity = ((hum_int << 8) + hum_dec) * 100; in dht11_decode() 157 dht11->humidity = hum_int * 1000; in dht11_decode() 161 hum_int, hum_dec, temp_int, temp_dec); in dht11_decode()
|
Completed in 1 milliseconds