Skip to content

Commit 46585f3

Browse files
committed
fix(openthread): code and readme typo
1 parent 465ebc4 commit 46585f3

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/ExtendedRouterNode/ExtendedRouterNode.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
// Leader node shall use the same Network Key and channel
1919
#define CLI_NETWORK_KEY "00112233445566778899aabbccddeeff"
20-
#define CLI_NETWORK_CHANEL "24"
20+
#define CLI_NETWORK_CHANNEL "24"
2121
bool otStatus = true;
2222

2323
void setup() {
@@ -29,7 +29,7 @@ void setup() {
2929

3030
otStatus &= otExecCommand("dataset", "clear");
3131
otStatus &= otExecCommand("dataset networkkey", CLI_NETWORK_KEY);
32-
otStatus &= otExecCommand("dataset channel", CLI_NETWORK_CHANEL);
32+
otStatus &= otExecCommand("dataset channel", CLI_NETWORK_CHANNEL);
3333
otStatus &= otExecCommand("dataset", "commit active");
3434
otStatus &= otExecCommand("ifconfig", "up");
3535
otStatus &= otExecCommand("thread", "start");

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/ExtendedRouterNode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Before uploading the sketch, configure the network parameters to match the Leade
4747

4848
```cpp
4949
#define CLI_NETWORK_KEY "00112233445566778899aabbccddeeff"
50-
#define CLI_NETWORK_CHANEL "24"
50+
#define CLI_NETWORK_CHANNEL "24"
5151
```
5252
5353
**Important:**

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/LeaderNode/LeaderNode.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "OThreadCLI_Util.h"
3030

3131
#define CLI_NETWORK_KEY "dataset networkkey 00112233445566778899aabbccddeeff"
32-
#define CLI_NETWORK_CHANEL "dataset channel 24"
32+
#define CLI_NETWORK_CHANNEL "dataset channel 24"
3333

3434
otInstance *aInstance = NULL;
3535

@@ -43,7 +43,7 @@ void setup() {
4343

4444
OThreadCLI.println("dataset init new");
4545
OThreadCLI.println(CLI_NETWORK_KEY);
46-
OThreadCLI.println(CLI_NETWORK_CHANEL);
46+
OThreadCLI.println(CLI_NETWORK_CHANNEL);
4747
OThreadCLI.println("dataset commit active");
4848
OThreadCLI.println("ifconfig up");
4949
OThreadCLI.println("thread start");

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/LeaderNode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Before uploading the sketch, you can modify the network configuration:
4444

4545
```cpp
4646
#define CLI_NETWORK_KEY "dataset networkkey 00112233445566778899aabbccddeeff"
47-
#define CLI_NETWORK_CHANEL "dataset channel 24"
47+
#define CLI_NETWORK_CHANNEL "dataset channel 24"
4848
```
4949
5050
**Important:**

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/RouterNode/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Before uploading the sketch, configure the network parameters to match the Leade
4747

4848
```cpp
4949
#define CLI_NETWORK_KEY "dataset networkkey 00112233445566778899aabbccddeeff"
50-
#define CLI_NETWORK_CHANEL "dataset channel 24"
50+
#define CLI_NETWORK_CHANNEL "dataset channel 24"
5151
```
5252
5353
**Important:**

libraries/OpenThread/examples/CLI/SimpleThreadNetwork/RouterNode/RouterNode.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include "OThreadCLI_Util.h"
2929

3030
#define CLI_NETWORK_KEY "dataset networkkey 00112233445566778899aabbccddeeff"
31-
#define CLI_NETWORK_CHANEL "dataset channel 24"
31+
#define CLI_NETWORK_CHANNEL "dataset channel 24"
3232

3333
otInstance *aInstance = NULL;
3434

@@ -43,7 +43,7 @@ void setup() {
4343

4444
OThreadCLI.println("dataset clear");
4545
OThreadCLI.println(CLI_NETWORK_KEY);
46-
OThreadCLI.println(CLI_NETWORK_CHANEL);
46+
OThreadCLI.println(CLI_NETWORK_CHANNEL);
4747
OThreadCLI.println("dataset commit active");
4848
OThreadCLI.println("ifconfig up");
4949
OThreadCLI.println("thread start");

0 commit comments

Comments
 (0)