Array korrigiert
This commit is contained in:
@@ -146,7 +146,7 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
$batterieManagement = $this->ReadPropertyInteger("Batteriemanagement");
|
||||
if ($batterieManagement == 1) {
|
||||
$dummy_array[] = $array_powersteps[0];
|
||||
$dummy_array[] = 0;
|
||||
return $this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
}
|
||||
|
||||
@@ -181,8 +181,8 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
|
||||
} else {
|
||||
$dummy_array[] = $array_powersteps[0];
|
||||
|
||||
$dummy_array[] = 0;
|
||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user