diff options
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/sched/clock/clock_systimespec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/sched/clock/clock_systimespec.c b/nuttx/sched/clock/clock_systimespec.c index c24daa70c..1c5362637 100644 --- a/nuttx/sched/clock/clock_systimespec.c +++ b/nuttx/sched/clock/clock_systimespec.c @@ -44,6 +44,7 @@ #include <nuttx/arch.h> #include <nuttx/clock.h> +#include <nuttx/rtc.h> #include "clock/clock.h" @@ -85,7 +86,7 @@ int clock_systimespec(FAR struct timespec *ts) { /* Get the hi-resolution time from the RTC */ - return up_rtc_gettime(tp); + return up_rtc_gettime(ts); } else #endif |