From acc695b8ad1347f709b179b4051c3a71639c29d3 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Thu, 12 Jun 2014 01:56:02 +0200 Subject: [PATCH] bugfixes to gpiopin --- lib/GpioPin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/GpioPin.php b/lib/GpioPin.php index e13669e..01c91ab 100644 --- a/lib/GpioPin.php +++ b/lib/GpioPin.php @@ -45,7 +45,7 @@ class GpioPin public function __construct($pin) { $this->pin = (int)$pin; - $this->fd = fopen("/sys/class/gpio/gpio{$pin}/value", "rb"); + $this->export(); } public function __destruct()