mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
73_ElectricityCalculator: Bugfix - Midnight-Crash
git-svn-id: https://svn.fhem.de/fhem/trunk@24247 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
903d85a585
commit
16d3e2eaac
@ -391,7 +391,7 @@ sub ElectricityCalculator_Set($@)
|
||||
### Create Log entries for debugging
|
||||
Log3 $ElectricityCalcName, 5, $ElectricityCalcName. " - 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);
|
||||
|
||||
### Get current CalculatorValue
|
||||
@ -422,7 +422,7 @@ sub ElectricityCalculator_Set($@)
|
||||
$attr{$ElectricityCalcName}{ElectricityCounterOffset} = $CounterOffsetNew;
|
||||
|
||||
### Create ReturnMessage
|
||||
$ReturnMessage = $ElectricityCalcName . " - Successfully synchromized Counter and Calculator with : " . $value . " kWh";
|
||||
$ReturnMessage = $ElectricityCalcName . " - Successfully synchronized Counter and Calculator with : " . $value . " kWh";
|
||||
}
|
||||
### For Test purpose only
|
||||
# elsif ($reading eq "Test")
|
||||
|
Loading…
Reference in New Issue
Block a user