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,10 +6292,13 @@ static void * pthAlertThread(void *x)
{
stickInited = 1;
numSamples = 0;
if (!(gpioCfg.ifFlags & PI_DISABLE_ALERT))
{
pthAlertRunning = PI_THREAD_RUNNING;
}
}
}
}
if (oldSlot == newSlot) moreToDo = 0; else moreToDo = 1;
@ -8474,9 +8477,13 @@ int gpioInitialise(void)
runState = PI_RUNNING;
if (!(gpioCfg.ifFlags & PI_DISABLE_ALERT))
{
while (pthAlertRunning != PI_THREAD_RUNNING) myGpioDelay(1000);
}
}
return status;
}