#264 adjust unit test and fix is40pin

This commit is contained in:
mstroh76
2025-05-23 19:51:01 +02:00
parent 18fc04d7f2
commit b87ca97daf
4 changed files with 38 additions and 28 deletions

View File

@@ -972,7 +972,7 @@ static void doVersion (char *argv [])
static void doIs40Pin ()
{
exit(piBoard40Pin());
exit(piBoard40Pin() ? EXIT_SUCCESS : EXIT_FAILURE);
}
/*

View File

@@ -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