Browse Source

[drivers] Modify RTC_SYNC_USING_NTP depends on PKG_NETUTILS_NTP

Signed-off-by: chenyong <1521761801@qq.com>
chenyong 6 years ago
parent
commit
739e8a8438
1 changed files with 2 additions and 3 deletions
  1. 2 3
      components/drivers/Kconfig

+ 2 - 3
components/drivers/Kconfig

@@ -118,9 +118,8 @@ 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
-        default n
+        depends on PKG_NETUTILS_NTP
+        default y
 
 
         if RTC_SYNC_USING_NTP
         if RTC_SYNC_USING_NTP
         config RTC_NTP_FIRST_SYNC_DELAY
         config RTC_NTP_FIRST_SYNC_DELAY