]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Class1: Extend ECM timeout
authorAidan Van Dyk <aidan@ifax.com>
Wed, 26 Sep 2007 12:58:00 +0000 (12:58 +0000)
committerAidan Van Dyk <aidan@ifax.com>
Wed, 26 Sep 2007 12:58:00 +0000 (12:58 +0000)
From Lee:
| commit a5948edf42ea8e6edd1811f85a8a21a1e09c02fc
| Author: Lee Howard <faxguy@howardsilvan.com>
| Date:   Fri Aug 24 23:24:45 2007 +0000
|
|   Extend the timeout for the initial ECM frame synchronization.

faxd/Class1.c++

index f35b66fe340f13f944845ccc5e4ee36676bde94d..64e700fd19b528c9152952448c2a0461dd60a2bb 100644 (file)
@@ -933,9 +933,9 @@ Class1Modem::syncECMFrame()
     // look for the first sync flag
 
     time_t start = Sys::now();
-    startTimeout(30000);       // despite indications by T.4 A.3.1
+    startTimeout(60000);       // despite indications by T.4 A.3.1
     do {
-       if ((unsigned) Sys::now()-start >= 30) {
+       if ((unsigned) Sys::now()-start >= 60) {
            protoTrace("Timeout awaiting synchronization sequence");
            setTimeout(true);
            return (false);
@@ -943,7 +943,7 @@ Class1Modem::syncECMFrame()
        bit = getModemBit(0);
     } while (bit != 0 && !didBlockEnd());
     do {
-       if ((unsigned) Sys::now()-start >= 30) {
+       if ((unsigned) Sys::now()-start >= 60) {
            protoTrace("Timeout awaiting synchronization sequence");
            setTimeout(true);
            return (false);