Skip to content

Commit

Permalink
Fixing a particular time shifiting from scheduller
Browse files Browse the repository at this point in the history
  • Loading branch information
solariun committed May 25, 2020
1 parent 68975e3 commit 605a70e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion CorePartition.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ static uint32_t GetTicks()
static void SleepTicks(const uint32_t nSleepValue)
{
uint32_t nSleepTicks = nSleepValue;
uint32_t nCTime;

while (nSleepTicks--) nCTime=GetTicks ();
}
Expand Down
5 changes: 4 additions & 1 deletion examples/BlinkThreadsPreemptive/BlinkThreadsPreemptive.ino
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ setPreemptionOn ();
//Serial.begin(115200);
//while (!Serial);

CorePartition_Start (4);
if (CorePartition_Start (4) == false)
{
exit (1);
}

CorePartition_SetStackOverflowHandler (StackOverflowHandler);

Expand Down

0 comments on commit 605a70e

Please sign in to comment.