33_readingsGroup.pm: ignore - in calc operations

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12088 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-08-29 18:38:14 +00:00
parent bac63b5907
commit 1c5545e898

View File

@ -473,7 +473,7 @@ rgCalc($$$$)
foreach my $col (eval "($cols)") { foreach my $col (eval "($cols)") {
foreach my $row (eval "($rows)") { foreach my $row (eval "($rows)") {
my $value = $hash->{helper}{values}{orig}[$col][$row]; my $value = $hash->{helper}{values}{orig}[$col][$row];
if( defined($value) ) { if( defined($value) && $value ne '-' ) {
#$value =~ s/[^-\.\d]//g; #$value =~ s/[^-\.\d]//g;
push @values, $value; push @values, $value;
} }