73_GasCalculator: Bugfix - SyncCounter

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@24243 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Sailor 2021-04-13 18:31:26 +00:00
parent d48a64896f
commit 9815c8614e

View File

@ -392,7 +392,7 @@ sub GasCalculator_Set($@)
Log3 $GasCalcName, 5, $GasCalcName. " - Syncing Counter with :" . $value;
### Sreach for the ReadingsName of the Current CounterValue
my @SearchResult = grep(/_CounterCurrent/, @cList);
my @SearchResult = grep(/_Meter/, @cList);
### Get current CalculatorValue
my $CalculaterValueCurrent = ReadingsVal($GasCalcName, $SearchResult[0], 0);