mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 23:57:47 +00:00
[cli] fix log filename command arg check (#8270)
This commit is contained in:
+1
-1
@@ -3282,7 +3282,7 @@ template <> otError Interpreter::Process<Cmd("log")>(Arg aArgs[])
|
||||
#if (OPENTHREAD_CONFIG_LOG_OUTPUT == OPENTHREAD_CONFIG_LOG_OUTPUT_DEBUG_UART) && OPENTHREAD_POSIX
|
||||
else if (aArgs[0] == "filename")
|
||||
{
|
||||
VerifyOrExit(aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS);
|
||||
VerifyOrExit(!aArgs[1].IsEmpty(), error = OT_ERROR_INVALID_ARGS);
|
||||
SuccessOrExit(error = otPlatDebugUart_logfile(aArgs[1].GetCString()));
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user