BugFix for the value from yesterday problem

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@1603 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2012-06-04 04:47:46 +00:00
parent 11bcbd0eed
commit 1d85fcecd3

View File

@ -262,8 +262,8 @@ RESCAN:
my $l;
if($rescan) {
last if($rescanIdx<=1 || !$rescanNum);
$l = $rescanArr[--$rescanIdx];
last if($rescanIdx<1 || !$rescanNum);
$l = $rescanArr[$rescanIdx--];
} else {
$l = <$ifh>;
last if(!$l);