Merge branch '1.0-local' into 1.0

This commit is contained in:
xdrm-brackets 2017-02-20 23:19:05 +01:00
commit 2fb5454cb2
1 changed files with 2 additions and 8 deletions

View File

@ -67,14 +67,8 @@
/* (2) For each pin, set the associated value */
foreach($g_state as $pinIndex=>$pinValue){
// {1} set value to LOW if 0 //
if( $pinValue == 0 ){
if( syscall(SOURCE_DIR."/lib/gpio/low ".$g_pins[$pinIndex]) == false )
return 127;
// {2} set value to HIGH if not 0 //
}else{
// set value to HIGH if not 0 //
if( $pinValue !== 0 ){
if( syscall(SOURCE_DIR."/lib/gpio/high ".$g_pins[$pinIndex]) == false )
return 127;