mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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:
parent
f60324322a
commit
6a3ee8e72f
@ -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…
x
Reference in New Issue
Block a user