mirror of
https://github.com/espressif/openthread.git
synced 2026-07-17 09:34:09 +00:00
Add macros for the channel bit-vector used with otActiveScan. (#236)
This commit is contained in:
+1
-1
@@ -1140,7 +1140,7 @@ void Interpreter::ProcessScan(int argc, char *argv[])
|
||||
if (argc > 0)
|
||||
{
|
||||
SuccessOrExit(error = ParseLong(argv[0], value));
|
||||
scanChannels = 1 << (value - kPhyMinChannel);
|
||||
scanChannels = 1 << value;
|
||||
}
|
||||
|
||||
SuccessOrExit(error = otActiveScan(scanChannels, 0, &HandleActiveScanResult));
|
||||
|
||||
Reference in New Issue
Block a user