mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-04 05:16:45 +00:00
73_WaterCalculator: Bugfix - Midnight-Crash
git-svn-id: https://svn.fhem.de/fhem/trunk@24246 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e39dbff541
commit
903d85a585
@ -391,7 +391,7 @@ sub WaterCalculator_Set($@)
|
|||||||
### Create Log entries for debugging
|
### Create Log entries for debugging
|
||||||
Log3 $WaterCalcName, 5, $WaterCalcName. " - Syncing Counter with :" . $value;
|
Log3 $WaterCalcName, 5, $WaterCalcName. " - Syncing Counter with :" . $value;
|
||||||
|
|
||||||
### Sreach for the ReadingsName of the Current CounterValue
|
### Serach for the ReadingsName of the Current CounterValue
|
||||||
my @SearchResult = grep(/_CounterCurrent/, @cList);
|
my @SearchResult = grep(/_CounterCurrent/, @cList);
|
||||||
|
|
||||||
### Get current CalculatorValue
|
### Get current CalculatorValue
|
||||||
@ -422,7 +422,7 @@ sub WaterCalculator_Set($@)
|
|||||||
$attr{$WaterCalcName}{WaterCounterOffset} = $CounterOffsetNew;
|
$attr{$WaterCalcName}{WaterCounterOffset} = $CounterOffsetNew;
|
||||||
|
|
||||||
### Create ReturnMessage
|
### Create ReturnMessage
|
||||||
$ReturnMessage = $WaterCalcName . " - Successfully synchromized Counter and Calculator with : " . $value . " kWh";
|
$ReturnMessage = $WaterCalcName . " - Successfully synchronized Counter and Calculator with : " . $value . " kWh";
|
||||||
}
|
}
|
||||||
### For Test purpose only
|
### For Test purpose only
|
||||||
# elsif ($reading eq "Test")
|
# elsif ($reading eq "Test")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user