diff --git a/lib/Gpio.php b/lib/Gpio.php index 3e36423..ff88664 100644 --- a/lib/Gpio.php +++ b/lib/Gpio.php @@ -30,10 +30,10 @@ class Gpio implements \ArrayAccess public function __construct() { - if (!file_exists("/sys/gpio")) { + if (!file_exists("/sys/class/gpio")) { throw new HardwareException("gpio sysfs is not available"); } - if (!is_writable("/sys/gpio/export")) { + if (!is_writable("/sys/class/gpio/export")) { throw new HardwareException("gpio sysfs is not writable"); } }