Browse Source

[DeviceDriver][RTC] Fix rtc Kconfig and missing return.

armink 7 years ago
parent
commit
c74bc870e8
2 changed files with 3 additions and 0 deletions
  1. 1 0
      components/drivers/Kconfig
  2. 2 0
      components/drivers/rtc/rtc.c

+ 1 - 0
components/drivers/Kconfig

@@ -90,6 +90,7 @@ config RT_USING_RTC
         default n
     config RTC_SYNC_USING_NTP
         bool "Using NTP auto sync RTC time"
+        select PKG_USING_NETUTILS
         select PKG_NETUTILS_NTP
         default n
         

+ 2 - 0
components/drivers/rtc/rtc.c

@@ -225,6 +225,8 @@ int rt_rtc_ntp_sync_init(void)
     }
 
     init_ok = RT_TRUE;
+		
+    return RT_EOK;
 }
 INIT_COMPONENT_EXPORT(rt_rtc_ntp_sync_init);
 #endif /* RTC_SYNC_USING_NTP */