[cli] fix ba state output and conversion of state to string (#9433)

This commit is contained in:
Abtin Keshavarzian
2023-09-18 18:36:11 -07:00
committed by GitHub
parent 851e00ffdb
commit 07c56c28e0
+1 -1
View File
@@ -567,7 +567,7 @@ template <> otError Interpreter::Process<Cmd("ba")>(Arg aArgs[])
else if (aArgs[0] == "state")
{
static const char *const kStateStrings[] = {
"Stopped" // (0) OT_BORDER_AGENT_STATE_STOPPED
"Stopped", // (0) OT_BORDER_AGENT_STATE_STOPPED
"Started", // (1) OT_BORDER_AGENT_STATE_STARTED
"Active", // (2) OT_BORDER_AGENT_STATE_ACTIVE
};