mirror of https://github.com/joan2937/pigpio
add isInitialised() function
This commit is contained in:
parent
cd8fe50e45
commit
e23decbd6e
8
pigpio.c
8
pigpio.c
|
@ -8436,6 +8436,14 @@ int gpioInitialise(void)
|
|||
}
|
||||
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
int gpioIsInitialised(void)
|
||||
{
|
||||
if (libInitialised) return 0;
|
||||
return PI_NOT_INITIALISED;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------- */
|
||||
|
||||
void gpioTerminate(void)
|
||||
|
|
Loading…
Reference in New Issue