clock_systimespec(): Fixes for compilation errors in certain configurations. From Macs N.
This commit is contained in:
parent
478e363200
commit
e69003cbf7
@ -44,6 +44,7 @@
|
|||||||
|
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/clock.h>
|
#include <nuttx/clock.h>
|
||||||
|
#include <nuttx/rtc.h>
|
||||||
|
|
||||||
#include "clock/clock.h"
|
#include "clock/clock.h"
|
||||||
|
|
||||||
@ -85,7 +86,7 @@ int clock_systimespec(FAR struct timespec *ts)
|
|||||||
{
|
{
|
||||||
/* Get the hi-resolution time from the RTC */
|
/* Get the hi-resolution time from the RTC */
|
||||||
|
|
||||||
return up_rtc_gettime(tp);
|
return up_rtc_gettime(ts);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user