tests/driver_rn2xx3: fix invalid element index to txmode
This commit is contained in:
parent
f5d4d41f7b
commit
5f5e58f1e2
@ -358,10 +358,10 @@ int rn2xx3_mac_cmd(int argc, char **argv) {
|
||||
}
|
||||
else if (strcmp(argv[2], "txmode") == 0) {
|
||||
loramac_tx_mode_t mode;
|
||||
if (strcmp(argv[2], "cnf") == 0) {
|
||||
if (strcmp(argv[3], "cnf") == 0) {
|
||||
mode = LORAMAC_TX_CNF;
|
||||
}
|
||||
else if (strcmp(argv[2], "uncnf") == 0) {
|
||||
else if (strcmp(argv[3], "uncnf") == 0) {
|
||||
mode = LORAMAC_TX_UNCNF;
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user