Skip to content

Commit

Permalink
Add RTSCTS option to control RTS/CTS hardware flow control
Browse files Browse the repository at this point in the history
  • Loading branch information
aib committed Jul 26, 2017
1 parent a2aab79 commit e3bf0b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wvdialer.cc
Expand Up @@ -642,6 +642,7 @@ void WvDialer::load_options()
{ "ISDN", NULL, &options.isdn, "", false },
{ "Ask Password", NULL, &options.ask_password, "", false },
{ "Dial Timeout", NULL, &options.dial_timeout, "", 60 },
{ "RTSCTS", NULL, &options.rtscts, "", true },

{ NULL, NULL, NULL, "", 0 }
};
Expand Down Expand Up @@ -726,7 +727,7 @@ bool WvDialer::init_modem()
}
else
{
cloned = modem = new WvModem( options.modem, options.baud );
cloned = modem = new WvModem( options.modem, options.baud, options.rtscts );
}
if( !modem->isok() )
{
Expand Down
1 change: 1 addition & 0 deletions wvdialer.h
Expand Up @@ -142,6 +142,7 @@ class WvDialer : public WvStreamClone
int isdn;
int ask_password;
int dial_timeout;
int rtscts;

} options;

Expand Down

0 comments on commit e3bf0b5

Please sign in to comment.