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:
parent
07a2e5c5cc
commit
5e196552c5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user