Make Network Diagnostic optional for MTD. (#1686)

* make network diagnostic optional for mtd
This commit is contained in:
Buke Po
2017-05-02 11:07:39 +08:00
committed by Jonathan Hui
parent 41b82d3a89
commit 9a35b0de05
9 changed files with 75 additions and 21 deletions
+2
View File
@@ -434,6 +434,7 @@ const char *otGetVersionString(void)
return sVersion;
}
#if OPENTHREAD_FTD || OPENTHREAD_ENABLE_MTD_NETWORK_DIAGNOSTIC
void otThreadSetReceiveDiagnosticGetCallback(otInstance *aInstance, otReceiveDiagnosticGetCallback aCallback,
void *aCallbackContext)
{
@@ -457,6 +458,7 @@ ThreadError otThreadSendDiagnosticReset(otInstance *aInstance, const otIp6Addres
aTlvTypes,
aCount);
}
#endif // OPENTHREAD_FTD || OPENTHREAD_ENABLE_MTD_NETWORK_DIAGNOSTIC
ThreadError otThreadSetEnabled(otInstance *aInstance, bool aEnabled)
{