Changes by tateu

This commit is contained in:
joan 2018-02-04 09:10:22 +00:00
parent 2c9a00a2f9
commit 847c081846
1 changed files with 9 additions and 2 deletions

View File

@ -6292,7 +6292,10 @@ static void * pthAlertThread(void *x)
{ {
stickInited = 1; stickInited = 1;
numSamples = 0; numSamples = 0;
pthAlertRunning = PI_THREAD_RUNNING; if (!(gpioCfg.ifFlags & PI_DISABLE_ALERT))
{
pthAlertRunning = PI_THREAD_RUNNING;
}
} }
} }
} }
@ -8474,7 +8477,11 @@ int gpioInitialise(void)
runState = PI_RUNNING; runState = PI_RUNNING;
while (pthAlertRunning != PI_THREAD_RUNNING) myGpioDelay(1000); if (!(gpioCfg.ifFlags & PI_DISABLE_ALERT))
{
while (pthAlertRunning != PI_THREAD_RUNNING) myGpioDelay(1000);
}
} }
return status; return status;