Skip to content

Commit

Permalink
Fix command-line processing of p/P option.
Browse files Browse the repository at this point in the history
Update docs to describe the p/P options.

Fixes #4 (better late than never..)
  • Loading branch information
mutability committed Oct 6, 2022
1 parent 188f893 commit cf88718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ The available settings are:
* i/I: FEC enabled / FEC disabled
* j/J: Mode A/C disabled / Mode A/C enabled
* k/K: no special filtering / do not send DF0/4/5 (only in Beast-Classic mode)
* p/P: disable/enable position-message reporting (only in Radarcape mode)

The h/H setting is understood but ignored; hardware flow control is always
used.
Expand Down
2 changes: 1 addition & 1 deletion splitter_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace beast {
po::validators::check_first_occurrence(v);
const std::string &s = po::validators::get_single_string(values);

static const boost::regex r("[cdefghijbrvCDEFGHIJBRV]*");
static const boost::regex r("[cdefghijbrvpCDEFGHIJBRVP]*");
if (boost::regex_match(s, r)) {
v = boost::any(beast::Settings(s));
} else {
Expand Down

0 comments on commit cf88718

Please sign in to comment.