From bb0e8af598ed24428ebd52c072d93fa885ae9f51 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Thu, 12 Jun 2014 01:58:25 +0200 Subject: [PATCH] bugfixes to gpiopin --- lib/GpioPin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/GpioPin.php b/lib/GpioPin.php index 3ed9b07..10e43da 100644 --- a/lib/GpioPin.php +++ b/lib/GpioPin.php @@ -46,6 +46,7 @@ class GpioPin { $this->pin = (int)$pin; $this->export(); + $this->fd = fopen("/sys/class/gpio/gpio{$pin}/value", "rb"); } public function __destruct()