mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-04 23:59:23 +02:00
atrf-txrx.c (main): option parsing in PER test mode segfaulted
This commit is contained in:
parent
07a2e5c5cc
commit
5e196552c5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user