Skip to content

Commit

Permalink
clock_systimespec(): Fixes for compilation errors in certain configur…
Browse files Browse the repository at this point in the history
…ations. From Macs N.
  • Loading branch information
gregory-nutt committed Jan 30, 2015
1 parent 478e363 commit e69003c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sched/clock/clock_systimespec.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@

#include <nuttx/arch.h>
#include <nuttx/clock.h>
#include <nuttx/rtc.h>

#include "clock/clock.h"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e69003c

Please sign in to comment.