correct windspeeds

git-svn-id: https://svn.fhem.de/fhem/trunk@3646 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
wherzig
2013-08-09 17:08:37 +00:00
parent a50d715417
commit 9f4d3b9426

View File

@@ -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);