cleaned up gpio and device code, implemented dummy/dry run mode
This commit is contained in:
1 parent
3e4765d071
commit
1449ec643f
8 files changed
+481
-84
No files matched your search
+1
-1
@@ -154,7 +154,7 @@ class GpioPin
|
||||
|
||||
public function sysfsWrite($pin, $file, $value)
|
||||
{
|
||||
if ($pin) {
|
||||
if ($pin!==null) {
|
||||
$path = "/sys/class/gpio/gpio{$pin}/{$file}";
|
||||
} else {
|
||||
$path = "/sys/class/gpio/{$file}";
|
||||
|
||||
Reference in new issue
Block a user