diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index 8a54061..0106be8 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -627,7 +627,7 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array $totalPower_ist = 0; foreach ($batteriesRaw as $bat) { - $totalPower_ist += (-1)*GetValue($bat->register_bat_power); + $totalPower_ist += GetValue($bat->register_bat_power); } // ----------------------------