32_SYSSTAT.pm: fixed ininitialized variable warning
git-svn-id: https://svn.fhem.de/fhem/trunk@9262 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -345,7 +345,7 @@ SYSSTAT_GetUpdate($)
|
||||
}
|
||||
} elsif( AttrVal($name, "synologytemperature", 0) > 0 ) {
|
||||
my $temp = SYSSTAT_getSynoTemp($hash);
|
||||
if( $temp > 0 && $temp < 200 ) {
|
||||
if( $temp && $temp > 0 && $temp < 200 ) {
|
||||
if( AttrVal($name, "synologytemperature", 0) eq 2 ) {
|
||||
$temp = sprintf( "%.1f", (3 * ReadingsVal($name,"temperature",$temp) + $temp ) / 4 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user