]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Class1: Timer in prologue is T1, not T2
authorAidan Van Dyk <aidan@ifax.com>
Wed, 26 Sep 2007 12:58:58 +0000 (12:58 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 26 Sep 2007 12:58:58 +0000 (12:58 +0000)
From Lee:
| commit 89d28398cd4ca1813075b43d67338750006396d1
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date:   Tue Sep 4 19:04:28 2007 +0000
|
|   This timer should be T1 and not T2.

faxd/Class1Send.c++

index 8e9f46484c9d5d2aef112295448e784fb2764982..a93726a4dbe57cbcbc5e30a7957ae6ecf156d2ff 100644 (file)
@@ -155,7 +155,7 @@ Class1Modem::getPrologue(Class2Params& params, bool& hasDoc, Status& eresult, u_
 
     bool framerecvd = false;
     if (batched & BATCH_FIRST)                 // receive carrier raised
-       framerecvd = recvFrame(frame, FCF_SNDR, conf.t2Timer, true);
+       framerecvd = recvFrame(frame, FCF_SNDR, conf.t1Timer, true);    // T1 is used here
     else {                                     // receive carrier not raised
        // We're not really switching directions of communication, but we don't want
        // to start listening for prologue frames until we're sure that the receiver 
@@ -220,7 +220,7 @@ Class1Modem::getPrologue(Class2Params& params, bool& hasDoc, Status& eresult, u_
        if ((unsigned) Sys::now()-start >= t1)
            break;
        if (!useV34) (void) switchingPause(eresult);
-       framerecvd = recvFrame(frame, FCF_SNDR, conf.t2Timer);
+       framerecvd = recvFrame(frame, FCF_SNDR, (Sys::now()-start)*1000);       // timer here is T1
     }
     eresult = Status(126, "No receiver protocol (T.30 T1 timeout)");
     protoTrace(eresult.string());