diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-10-25 23:39:17 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-10-25 23:39:17 +0200 |
commit | 71d8d027930b48261eaf1d9e014bc61287ce1bcf (patch) | |
tree | 39086db700fb5745e47880b1f7dcd4ab05df5458 /lib | |
parent | a71fbeeaa58b7591886d29401610eb78faf3c99d (diff) |
use numchan instead of nchan to prevent ambiguity...
..when specifying total number of channels offered by the block
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arg_helpers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arg_helpers.h b/lib/arg_helpers.h index c1a4fb3..9220708 100644 --- a/lib/arg_helpers.h +++ b/lib/arg_helpers.h @@ -102,7 +102,7 @@ struct is_nchan_argument { bool operator ()(const std::string &str) { - return str.find("nchan=") == 0; + return str.find("numchan=") == 0; } }; @@ -114,7 +114,7 @@ inline gr::io_signature::sptr args_to_io_signature( const std::string &args ) BOOST_FOREACH( std::string arg, arg_list ) { - if ( arg.find( "nchan=" ) == 0 ) // try to parse global nchan value + if ( arg.find( "numchan=" ) == 0 ) // try to parse global nchan value { pair_t pair = param_to_pair( arg ); max_nchan = boost::lexical_cast<size_t>( pair.second ); |