#264 adjust unit test and fix is40pin
This commit is contained in:
@@ -972,7 +972,7 @@ static void doVersion (char *argv [])
|
||||
|
||||
static void doIs40Pin ()
|
||||
{
|
||||
exit(piBoard40Pin());
|
||||
exit(piBoard40Pin() ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -110,11 +110,15 @@ wfis_test() {
|
||||
fi
|
||||
}
|
||||
|
||||
gpio is40pin || { GPIOIN=17; GPIOOUT=18; echo "old 28 pin system"; }
|
||||
|
||||
|
||||
echo
|
||||
echo Unit test gpio GPIO${GPIOOUT} and GPIO${GPIOIN} - functions: mode, write, wfi
|
||||
echo ------------------------------------------------------------------
|
||||
echo
|
||||
|
||||
|
||||
#prepare trigger out
|
||||
gpio -g mode $GPIOOUT out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user