From 63330350173218aab483ce871ea7916bb8fa0d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Tue, 8 Apr 2025 07:15:21 +0200 Subject: [PATCH] no message --- Ladestation_v2/module.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index edd4522..ea2c40a 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -248,7 +248,7 @@ class Ladestation_v2 extends IPSModule public function Get_Array_From_Current(bool $is_1_ph, float $current) { $resultArray = []; - + $resultArray[] = 0; for ($i = 6; $i <= $current; $i++) { if ($is_1_ph) { $resultArray[] = $i * 230; @@ -328,7 +328,7 @@ class Ladestation_v2 extends IPSModule if (!$ladebereit) { $powerSteps = [0]; } elseif (!$Peak && !$solarladen) { - $powerSteps = [max(0,$this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))]; + $powerSteps = [max($this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")))]; } elseif (!$Peak && $solarladen) { $powerSteps = $this->Get_Array_From_Current($this->GetValue("Is_1_ph"),$this->GetValue("Max_Current")); } elseif ($solarladen && $Peak) {