Skip to content

Commit

Permalink
Add csl accuracy and uncertainty commands
Browse files Browse the repository at this point in the history
  • Loading branch information
edmont committed Nov 7, 2023
1 parent 27eab8c commit e8ee4e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/cli/cli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2446,6 +2446,14 @@ template <> otError Interpreter::Process<Cmd("csl")>(Arg aArgs[])
{
error = ProcessSet(aArgs + 1, otLinkSetCslTimeout);
}
else if (aArgs[0] == "accuracy")
{
error = ProcessSet(aArgs + 1, otPlatRadioSetCslAccuracy);
}
else if (aArgs[0] == "uncertainty")
{
error = ProcessSet(aArgs + 1, otPlatRadioSetCslUncertainty);
}
else
{
error = OT_ERROR_INVALID_ARGS;
Expand Down
2 changes: 1 addition & 1 deletion src/core/config/radio_link.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
*
*/
#ifndef OPENTHREAD_CONFIG_RADIO_STATS_ENABLE
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 0
#define OPENTHREAD_CONFIG_RADIO_STATS_ENABLE 1
#endif

//--------------------------------------------------------------
Expand Down

0 comments on commit e8ee4e8

Please sign in to comment.