mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 18:59:33 +00:00
correct windspeeds
git-svn-id: https://svn.fhem.de/fhem/trunk@3646 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c35694e4c0
commit
ac82866288
@ -400,8 +400,8 @@ sub TRX_WEATHER_common_anemometer {
|
||||
my $dir = $bytes->[5]*256 + $bytes->[6];
|
||||
my $dirname = $TRX_WEATHER_winddir_name[$dir/22.5];
|
||||
|
||||
my $avspeed = $bytes->[7]*256 + $bytes->[8];
|
||||
my $speed = $bytes->[9]*256 + $bytes->[10];
|
||||
my $avspeed = ($bytes->[7]*256 + $bytes->[8]) / 10;
|
||||
my $speed = ($bytes->[9]*256 + $bytes->[10]) / 10;
|
||||
|
||||
if ($dev_type eq "TFA_WIND") {
|
||||
TRX_WEATHER_temperature($bytes, $dev_str, \@res, 11);
|
||||
|
Loading…
Reference in New Issue
Block a user