You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/24 11:49:38 UTC

[incubator-nuttx] branch master updated: Update timer_gettime.c

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f07067d  Update timer_gettime.c
f07067d is described below

commit f07067dc9da663b0d4cb77be965e3ab59acb7d69
Author: yanyunyouyou <38...@users.noreply.github.com>
AuthorDate: Fri Apr 24 18:24:01 2020 +0800

    Update timer_gettime.c
    
    fix a bug :change the timer->pt_last to timer->pt_delay,
---
 sched/timer/timer_gettime.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sched/timer/timer_gettime.c b/sched/timer/timer_gettime.c
index 33b79d2..dfa66a9 100644
--- a/sched/timer/timer_gettime.c
+++ b/sched/timer/timer_gettime.c
@@ -86,7 +86,7 @@ int timer_gettime(timer_t timerid, FAR struct itimerspec *value)
   /* Convert that to a struct timespec and return it */
 
   clock_ticks2time(ticks, &value->it_value);
-  clock_ticks2time(timer->pt_last, &value->it_interval);
+  clock_ticks2time(timer->pt_delay, &value->it_interval);
   return OK;
 }