98_Siro.pm:Fix Use of uninitialized value

git-svn-id: https://svn.fhem.de/fhem/trunk@15944 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Byte09
2018-01-21 08:52:49 +00:00
parent 96a9217014
commit 0fa12e5f5d

View File

@@ -743,6 +743,7 @@ sub Siro_Attr(@)
}
my $oldstate =$hash->{helper}{position};
if(!defined $oldstate){$oldstate=0};
my $newState = $oldstate;
my $updateState;
Log3 $hash, 3, "Siro_Attr: state old -> $oldstate new -> $newState";