summaryrefslogtreecommitdiffstats
path: root/usr.bin/tip
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-03-05 19:11:49 +0000
committerpst <pst@FreeBSD.org>1996-03-05 19:11:49 +0000
commitb1ffbc592b98a3b3c362862df59f709ee55d9091 (patch)
tree978896ae4bc65a6dc43c496e42d2c384f332f29d /usr.bin/tip
parentcbe1fd47c1bc5dfb7071d28ecb963799c178b366 (diff)
downloadFreeBSD-src-b1ffbc592b98a3b3c362862df59f709ee55d9091.zip
FreeBSD-src-b1ffbc592b98a3b3c362862df59f709ee55d9091.tar.gz
Here's a patch that fixes the problem with modem syncronization
problems with tip. There are some hardwired timeouts that ignores the delay that you can set in the modem configuration file. The hard-wire delay is to short if the modem has to switch major modes and reset (ie going from fax to data mode with a reset). Now my modem transistions from HylaFax control to tip control and ppp mode without any problems. Submitted by: Douglas Ambrisko <ambrisko@tcs.com>
Diffstat (limited to 'usr.bin/tip')
-rw-r--r--usr.bin/tip/libacu/unidialer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tip/libacu/unidialer.c b/usr.bin/tip/libacu/unidialer.c
index 3d2701d..4f8a1f5 100644
--- a/usr.bin/tip/libacu/unidialer.c
+++ b/usr.bin/tip/libacu/unidialer.c
@@ -451,7 +451,7 @@ badsynch:
unidialer_modem_cmd (FD, init_string);
- if (!unidialer_get_okay (250))
+ if (!unidialer_get_okay (reset_delay))
goto badsynch;
fflush (stdout);
@@ -532,7 +532,7 @@ static void unidialer_disconnect ()
unidialer_modem_cmd (FD, escape_sequence);
acu_nap (timeout_value);
unidialer_modem_cmd (FD, hangup_command);
- okay = unidialer_get_okay (250);
+ okay = unidialer_get_okay (reset_delay);
}
if (!okay)
{
OpenPOWER on IntegriCloud