mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 20:55:26 +08:00
[DeviceDriver][RTC] Fix rtc Kconfig and missing return.
This commit is contained in:
parent
c6e928a780
commit
c74bc870e8
@ -90,6 +90,7 @@ config RT_USING_RTC
|
|||||||
default n
|
default n
|
||||||
config RTC_SYNC_USING_NTP
|
config RTC_SYNC_USING_NTP
|
||||||
bool "Using NTP auto sync RTC time"
|
bool "Using NTP auto sync RTC time"
|
||||||
|
select PKG_USING_NETUTILS
|
||||||
select PKG_NETUTILS_NTP
|
select PKG_NETUTILS_NTP
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
@ -225,6 +225,8 @@ int rt_rtc_ntp_sync_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_ok = RT_TRUE;
|
init_ok = RT_TRUE;
|
||||||
|
|
||||||
|
return RT_EOK;
|
||||||
}
|
}
|
||||||
INIT_COMPONENT_EXPORT(rt_rtc_ntp_sync_init);
|
INIT_COMPONENT_EXPORT(rt_rtc_ntp_sync_init);
|
||||||
#endif /* RTC_SYNC_USING_NTP */
|
#endif /* RTC_SYNC_USING_NTP */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user