Merge branch '1.0-local' into 1.0
This commit is contained in:
commit
ad49d11e60
|
@ -68,11 +68,10 @@
|
||||||
foreach($g_state as $pinIndex=>$pinValue){
|
foreach($g_state as $pinIndex=>$pinValue){
|
||||||
|
|
||||||
// set value to HIGH if not 0 //
|
// set value to HIGH if not 0 //
|
||||||
if( $pinValue !== 0 ){
|
if( $pinValue !== 0 )
|
||||||
|
syscall(SOURCE_DIR."/lib/gpio/high ".$g_pins[$pinIndex]);
|
||||||
if( syscall(SOURCE_DIR."/lib/gpio/high ".$g_pins[$pinIndex]) == false )
|
else
|
||||||
return 127;
|
syscall(SOURCE_DIR."/lib/gpio/low ".$g_pins[$pinIndex]);
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue