98_DOIF.pm: svg card: fixed last_value

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24271 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Damian 2021-04-18 15:10:41 +00:00
parent f60324322a
commit 6a3ee8e72f

View File

@ -1343,7 +1343,7 @@ sub collect_setValue
if (defined $hash->{collect}{"$name $reading"}{$hours}{last_slot}) { if (defined $hash->{collect}{"$name $reading"}{$hours}{last_slot}) {
$diff_slots=$slot_nr-$hash->{collect}{"$name $reading"}{$hours}{last_slot}; $diff_slots=$slot_nr-$hash->{collect}{"$name $reading"}{$hours}{last_slot};
if ($diff_slots > 0) { if ($diff_slots > 0) {
$hash->{collect}{"$name $reading"}{$hours}{last_value}=undef; # $hash->{collect}{"$name $reading"}{$hours}{last_value}=undef;
if ($diff_slots >= $dim) { if ($diff_slots >= $dim) {
for (my $i=@{$va}-1;$i>=0;$i--) { for (my $i=@{$va}-1;$i>=0;$i--) {
if (defined (${$va}[$i])) { if (defined (${$va}[$i])) {