add isInitialised() function

This commit is contained in:
Daniel Plasa 2017-04-03 16:47:26 +02:00 committed by GitHub
parent cd8fe50e45
commit e23decbd6e
1 changed files with 8 additions and 0 deletions

View File

@ -8436,6 +8436,14 @@ int gpioInitialise(void)
}
/* ----------------------------------------------------------------------- */
int gpioIsInitialised(void)
{
if (libInitialised) return 0;
return PI_NOT_INITIALISED;
}
/* ----------------------------------------------------------------------- */
void gpioTerminate(void)