diff --git a/Ladestation_v2/module.php b/Ladestation_v2/module.php index 5095475..cddb41c 100644 --- a/Ladestation_v2/module.php +++ b/Ladestation_v2/module.php @@ -97,12 +97,12 @@ class Ladestation_v2 extends IPSModule public function Detect_Car(int $carType) { - $full = false; + $is_full = false; if($this->GetValue("Car_Detected")){ if($this->Get_Car_Status($carType)==true){ $this->SetValue("Car_Detected", true); if($this->GetValue("Max_Current")<6){ - $full = true; + $is_full = true; } }else{ @@ -146,7 +146,7 @@ class Ladestation_v2 extends IPSModule } } - $this-SetValue("Car_is_full", $full); + $this-SetValue("Car_is_full", $is_full); return $this->GetValue("Car_Detected"); }