diff --git a/Bat_EV_SDL _V2/module.php b/Bat_EV_SDL _V2/module.php index 2685c01..fab5022 100644 --- a/Bat_EV_SDL _V2/module.php +++ b/Bat_EV_SDL _V2/module.php @@ -624,10 +624,10 @@ private function CalculateBatteryDistribution(float $pEvW, float $pSdlW): array foreach ($batteriesRaw as $bat) { print_r($bat); print_r("\N"); - print_r($GetValue($bat['register_bat_power'])); + print_r($GetValue($bat->register_bat_power)); print_r("\N"); - $totalPower_ist += GetValue($bat['register_bat_power']); + $totalPower_ist += GetValue($bat->register_bat_power); }