mirror of
https://github.com/espressif/openthread.git
synced 2026-10-01 13:27:42 +00:00
[cli] always output command result (#4556)
Always output command result, i.e. "Done" on success, error message otherwise. Factory commands also follow the same pattern. Their existing error messages are not removed for backward compatibility consideration.
This commit is contained in:
@@ -145,7 +145,7 @@ bool otDiagIsEnabled(otInstance *aInstance)
|
||||
return false;
|
||||
}
|
||||
|
||||
void otDiagProcessCmd(otInstance *aInstance, int aArgCount, char *aArgVector[], char *aOutput, size_t aOutputMaxLen)
|
||||
otError otDiagProcessCmd(otInstance *aInstance, int aArgCount, char *aArgVector[], char *aOutput, size_t aOutputMaxLen)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
OT_UNUSED_VARIABLE(aArgCount);
|
||||
@@ -447,13 +447,15 @@ otError otPlatUartFlush(void)
|
||||
return OT_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
void otPlatDiagProcess(otInstance *aInstance, int argc, char *argv[], char *aOutput, size_t aOutputMaxLen)
|
||||
otError otPlatDiagProcess(otInstance *aInstance, int argc, char *argv[], char *aOutput, size_t aOutputMaxLen)
|
||||
{
|
||||
OT_UNUSED_VARIABLE(aInstance);
|
||||
OT_UNUSED_VARIABLE(argc);
|
||||
OT_UNUSED_VARIABLE(argv);
|
||||
OT_UNUSED_VARIABLE(aOutput);
|
||||
OT_UNUSED_VARIABLE(aOutputMaxLen);
|
||||
|
||||
return OT_ERROR_INVALID_ARGS;
|
||||
}
|
||||
|
||||
void otPlatDiagModeSet(bool aMode)
|
||||
|
||||
Reference in New Issue
Block a user