mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
atrf-txrx.c (main): option parsing in PER test mode segfaulted
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user