Merge pull request #11659 from aabadie/pr/tests/driver_rn2xx3_tx_mode_fix

tests/driver_rn2xx3: fix invalid element index for txmode
This commit is contained in:
Leandro Lanzieri 2019-06-28 10:39:39 +02:00 committed by GitHub
commit 6938df1f82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {