1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-23 03:49:41 +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); transmit(dsc, argv[optind], times);
break; break;
case mode_per: case mode_per:
times = strtoul(argv[optind+1], &end, 0); times = strtoul(argv[optind], &end, 0);
if (*end) if (*end)
usage(*argv); usage(*argv);
set_power_dBm(dsc, power, 0); set_power_dBm(dsc, power, 0);