Skip to content
Snippets Groups Projects
Commit 9bbf194b authored by Matteo Pignataro's avatar Matteo Pignataro
Browse files

[PinObserver] Changed task policy to recover

parent 23da22ef
Branches
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ bool PinObserver::registerPinCallback(miosix::GpioPin pin, PinCallback callback,
{
if (scheduler.addTask(
std::bind(&PinObserver::periodicPinValueCheck, this, pin),
SAMPLE_PERIOD, TaskScheduler::Policy::SKIP))
SAMPLE_PERIOD, TaskScheduler::Policy::RECOVER))
return true;
else
callbacks.erase(pin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment