[config] sntp client (#4020)

This commit is contained in:
Jonathan Hui
2019-07-12 15:28:37 -07:00
parent 5e395ddf54
commit 8d61b4b99e
16 changed files with 92 additions and 74 deletions
+2 -2
View File
@@ -208,7 +208,7 @@ const struct Command Interpreter::sCommands[] = {
{"service", &Interpreter::ProcessService},
#endif
{"singleton", &Interpreter::ProcessSingleton},
#if OPENTHREAD_ENABLE_SNTP_CLIENT
#if OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE
{"sntp", &Interpreter::ProcessSntp},
#endif
{"state", &Interpreter::ProcessState},
@@ -2857,7 +2857,7 @@ void Interpreter::ProcessSingleton(int argc, char *argv[])
AppendResult(error);
}
#if OPENTHREAD_ENABLE_SNTP_CLIENT
#if OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE
void Interpreter::ProcessSntp(int argc, char *argv[])
{
otError error = OT_ERROR_NONE;