array korregieren
This commit is contained in:
@@ -172,8 +172,8 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
|
||||
} else {
|
||||
$dummy_array = $array_powersteps[0];
|
||||
|
||||
$dummy_array[] = $array_powersteps[0];
|
||||
|
||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
|
||||
}
|
||||
@@ -182,7 +182,7 @@ public function RequestAction($Ident, $Value)
|
||||
|
||||
|
||||
if ($batterieladezustand <= $minimumentladen) {
|
||||
$dummy_array = max($array_powersteps);
|
||||
$dummy_array[] = max($array_powersteps);
|
||||
$this->SetValue("PowerSteps", json_encode($dummy_array));
|
||||
} else {
|
||||
$filtered_powersteps = array_filter($array_powersteps, function ($value) use ($maxleistung) {
|
||||
|
||||
Reference in New Issue
Block a user