Fix typo error in micrortps_client module

Fixed the typo error in micrortps_client which was causing issue to update
baudrate and other options.
This commit is contained in:
Avinash Reddy Palleti
2017-12-01 16:43:11 +05:30
committed by Beat Küng
parent 1a9e2ac789
commit b1a16840c7
2 changed files with 5 additions and 5 deletions
@@ -94,13 +94,13 @@ static int parse_options(int argc, char *argv[])
case 'w': _options.sleep_ms = strtol(myoptarg, nullptr, 10); break;
case 'b': _options.baudrate = strtoul(optarg, nullptr, 10); break;
case 'b': _options.baudrate = strtoul(myoptarg, nullptr, 10); break;
case 'p': _options.poll_ms = strtol(optarg, nullptr, 10); break;
case 'p': _options.poll_ms = strtol(myoptarg, nullptr, 10); break;
case 'r': _options.recv_port = strtoul(optarg, nullptr, 10); break;
case 'r': _options.recv_port = strtoul(myoptarg, nullptr, 10); break;
case 's': _options.send_port = strtoul(optarg, nullptr, 10); break;
case 's': _options.send_port = strtoul(myoptarg, nullptr, 10); break;
default:
usage(argv[1]);