diff --git a/src/Adapters/RPiAdapter.php b/src/Adapters/RPiAdapter.php index fa6144f..1d1b817 100644 --- a/src/Adapters/RPiAdapter.php +++ b/src/Adapters/RPiAdapter.php @@ -39,7 +39,7 @@ public function setDirection(int $pin, string $direction, bool $invert = false): if ($invert) { $inverted = intval($invert); - if (file_get_contents("/sys/class/gpio/gpio{$pin}/active_low") !== $inverted) { + if (file_get_contents("/sys/class/gpio/gpio{$pin}/active_low") != $inverted) { system("echo {$inverted} > /sys/class/gpio/gpio{$pin}/active_low"); } }