logging: otSetDynamicLogLevel() returning OT_ERROR_DISABLED_FEATURE when not enabled. (#1832)

This commit is contained in:
Abtin Keshavarzian
2017-05-25 21:55:13 -07:00
committed by Jonathan Hui
parent be218c4cc1
commit 26fabd3a70
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -239,7 +239,7 @@ otError otSetDynamicLogLevel(otInstance *aInstance, otLogLevel aLogLevel)
#if OPENTHREAD_CONFIG_ENABLE_DYNAMIC_LOG_LEVEL
aInstance->mLogLevel = aLogLevel;
#else
error = OT_ERROR_NOT_CAPABLE;
error = OT_ERROR_DISABLED_FEATURE;
(void)aInstance;
(void)aLogLevel;
#endif