mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 07:19:24 +00:00
98_DOIF.pm: svg card: fixed last_value
git-svn-id: https://svn.fhem.de/fhem/trunk@24271 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
898ddd9e9d
commit
330a8824db
@ -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])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user