mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
52_I2C_HDC1008.pm: missing part of "read temperature and humidity in one step"
git-svn-id: https://svn.fhem.de/fhem/trunk@16704 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
86a2adc731
commit
716a795bcd
@ -209,7 +209,7 @@ sub I2C_HDC1008_GetHum ($$)
|
||||
my $name = $hash->{NAME};
|
||||
|
||||
my @raw = split(" ",$rawdata);
|
||||
my $humWord = ($raw[0] << 8 | $raw[1]);
|
||||
my $humWord = ($raw[2] << 8 | $raw[3]);
|
||||
|
||||
my $humidity = ($humWord /65536.0)*100.0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user