1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-05 06:16:15 +02:00

atrf-txrx.c (main): option parsing in PER test mode segfaulted

This commit is contained in:
Werner Almesberger 2011-04-19 04:51:18 -03:00
parent 07a2e5c5cc
commit 5e196552c5

View File

@ -626,7 +626,7 @@ int main(int argc, char *const *argv)
transmit(dsc, argv[optind], times);
break;
case mode_per:
times = strtoul(argv[optind+1], &end, 0);
times = strtoul(argv[optind], &end, 0);
if (*end)
usage(*argv);
set_power_dBm(dsc, power, 0);