From 646033353f73ba2a91cd709e2f4d157e4bbc0a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20H=C3=A4fliger?= Date: Wed, 27 Nov 2024 15:56:13 +0100 Subject: [PATCH] di waren verdreht --- CC100_HW/module.php | 20 ++++++++++---------- library.json | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CC100_HW/module.php b/CC100_HW/module.php index f04bbf0..c5a1761 100644 --- a/CC100_HW/module.php +++ b/CC100_HW/module.php @@ -36,7 +36,7 @@ class CC100_HW extends IPSModule // Timer für PT1 und PT2 einrichten $this->RegisterTimer("ReadPTValues", 30000, 'IPS_RequestAction(' . $this->InstanceID . ', "DOUT_ReadPTValues", "");'); - $this->RegisterTimer("WriteBits", 1000, 'IPS_RequestAction(' . $this->InstanceID . ', "UpdateFile", "");'); + $this->RegisterTimer("WriteBits", 2000, 'IPS_RequestAction(' . $this->InstanceID . ', "UpdateFile", "");'); } @@ -62,7 +62,7 @@ class CC100_HW extends IPSModule private function UpdateFile() { - $starttime = microtime(true) * 1000; + $starttime = microtime(true) * 2000; $this->TryWriteFile($starttime); } @@ -100,14 +100,14 @@ class CC100_HW extends IPSModule // Binärwerte in ein Array von booleschen Werten umwandeln $boolValues = array_map(fn($bit) => $bit === "1", str_split($binaryString)); - $this->SetValue("DI1", $boolValues[0]); - $this->SetValue("DI2", $boolValues[1]); - $this->SetValue("DI3", $boolValues[2]); - $this->SetValue("DI4", $boolValues[3]); - $this->SetValue("DI5", $boolValues[4]); - $this->SetValue("DI6", $boolValues[5]); - $this->SetValue("DI7", $boolValues[6]); - $this->SetValue("DI8", $boolValues[7]); + $this->SetValue("DI1", $boolValues[7]); + $this->SetValue("DI2", $boolValues[6]); + $this->SetValue("DI3", $boolValues[5]); + $this->SetValue("DI4", $boolValues[4]); + $this->SetValue("DI5", $boolValues[3]); + $this->SetValue("DI6", $boolValues[2]); + $this->SetValue("DI7", $boolValues[1]); + $this->SetValue("DI8", $boolValues[0]); return $boolValues; } diff --git a/library.json b/library.json index 11ad11b..de371d0 100644 --- a/library.json +++ b/library.json @@ -6,7 +6,7 @@ "compatibility": { "version": "7.1" }, - "version": "0.154", + "version": "0.155", "build": 0, "date": 0 } \ No newline at end of file