tests/driver_rn2xx3: fix invalid element index to txmode

This commit is contained in:
Alexandre Abadie 2019-06-07 10:47:23 +02:00
parent f5d4d41f7b
commit 5f5e58f1e2
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -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 {