summaryrefslogtreecommitdiff
path: root/nuttx/arch/pjrc-8051/src
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/pjrc-8051/src')
-rw-r--r--nuttx/arch/pjrc-8051/src/up_unblocktask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/pjrc-8051/src/up_unblocktask.c b/nuttx/arch/pjrc-8051/src/up_unblocktask.c
index 005e74e54..2f242fe0f 100644
--- a/nuttx/arch/pjrc-8051/src/up_unblocktask.c
+++ b/nuttx/arch/pjrc-8051/src/up_unblocktask.c
@@ -101,7 +101,7 @@ void up_unblock_task(FAR _TCB *tcb)
*/
#if CONFIG_RR_INTERVAL > 0
- tcb->timeslice = CONFIG_RR_INTERVAL;
+ tcb->timeslice = CONFIG_RR_INTERVAL / MSEC_PER_SEC;
#endif
/* Add the task in the correct location in the prioritized