no message
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user