From b1ffbc592b98a3b3c362862df59f709ee55d9091 Mon Sep 17 00:00:00 2001 From: pst Date: Tue, 5 Mar 1996 19:11:49 +0000 Subject: 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 --- usr.bin/tip/libacu/unidialer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/tip') 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) { -- cgit v1.1