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
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ bool PinObserver::registerPinCallback(miosix::GpioPin pin, PinCallback callback, ...@@ -43,7 +43,7 @@ bool PinObserver::registerPinCallback(miosix::GpioPin pin, PinCallback callback,
{ {
if (scheduler.addTask( if (scheduler.addTask(
std::bind(&PinObserver::periodicPinValueCheck, this, pin), std::bind(&PinObserver::periodicPinValueCheck, this, pin),
SAMPLE_PERIOD, TaskScheduler::Policy::SKIP)) SAMPLE_PERIOD, TaskScheduler::Policy::RECOVER))
return true; return true;
else else
callbacks.erase(pin); callbacks.erase(pin);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment