mirror of https://github.com/joan2937/pigpio
Changes by tateu
This commit is contained in:
parent
2c9a00a2f9
commit
847c081846
7
pigpio.c
7
pigpio.c
|
@ -6292,10 +6292,13 @@ static void * pthAlertThread(void *x)
|
||||||
{
|
{
|
||||||
stickInited = 1;
|
stickInited = 1;
|
||||||
numSamples = 0;
|
numSamples = 0;
|
||||||
|
if (!(gpioCfg.ifFlags & PI_DISABLE_ALERT))
|
||||||
|
{
|
||||||
pthAlertRunning = PI_THREAD_RUNNING;
|
pthAlertRunning = PI_THREAD_RUNNING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (oldSlot == newSlot) moreToDo = 0; else moreToDo = 1;
|
if (oldSlot == newSlot) moreToDo = 0; else moreToDo = 1;
|
||||||
|
|
||||||
|
@ -8474,9 +8477,13 @@ int gpioInitialise(void)
|
||||||
|
|
||||||
runState = PI_RUNNING;
|
runState = PI_RUNNING;
|
||||||
|
|
||||||
|
if (!(gpioCfg.ifFlags & PI_DISABLE_ALERT))
|
||||||
|
{
|
||||||
while (pthAlertRunning != PI_THREAD_RUNNING) myGpioDelay(1000);
|
while (pthAlertRunning != PI_THREAD_RUNNING) myGpioDelay(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue