2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 18:59:33 +00:00

73_GasCalculator: Bugfix - Handling of Readings with .

git-svn-id: https://svn.fhem.de/fhem/trunk@23699 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Sailor 2021-02-08 08:45:40 +00:00
parent 960ac6b1fa
commit 52f8d897e2

View File

@ -287,7 +287,7 @@ sub GasCalculator_Set($@)
#Log3 $GasCalcName, 5, $GasCalcName. "_Set - value : " . $value;
### For Test purpose only
push(@cList, "Test");
#push(@cList, "Test");
### Create set-List
if(defined($hash->{READINGS})) {
@ -342,9 +342,9 @@ sub GasCalculator_Set($@)
$ReturnMessage = $GasCalcName . " - Successfully synchromized Counter and Calculator with : " . $value . " kWh";
}
### For Test purpose only
elsif ($reading eq "Test") {
GasCalculator_MidnightTimer($hash);
}
#elsif ($reading eq "Test") {
# GasCalculator_MidnightTimer($hash);
#}
elsif ($reading ne "?")
{
### Create Log entries for debugging