Skip to content

Commit

Permalink
Increase task guard margin to 3us
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveCEvans committed Dec 20, 2021
1 parent aa4f0f7 commit 5c4f3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scheduler/scheduler.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#define SCHED_START_LOOP_DOWN_STEP 50 // Fraction of a us to reduce start loop wait
#define SCHED_START_LOOP_UP_STEP 1 // Fraction of a us to increase start loop wait

#define TASK_GUARD_MARGIN_MIN_US 1 // Add an amount to the estimate of a task duration
#define TASK_GUARD_MARGIN_MIN_US 3 // Add an amount to the estimate of a task duration
#define TASK_GUARD_MARGIN_MAX_US 6
#define TASK_GUARD_MARGIN_DOWN_STEP 50 // Fraction of a us to reduce task guard margin
#define TASK_GUARD_MARGIN_UP_STEP 1 // Fraction of a us to increase task guard margin
Expand Down

0 comments on commit 5c4f3c6

Please sign in to comment.