2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

33_readingsGroup.pm: ignore - in calc operations

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

View File

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