]> git.ipfire.org Git - thirdparty/HylaFAX.git/commitdiff
Bug 526: drop 4800 bps per step-down with V.34 renegotiations
authorLee Howard <faxguy@howardsilvan.com>
Mon, 12 Apr 2004 22:41:43 +0000 (22:41 +0000)
committerLee Howard <faxguy@howardsilvan.com>
Mon, 12 Apr 2004 22:41:43 +0000 (22:41 +0000)
faxd/Class1.c++

index d1edeb0925398623f74ce75da0f0fa558d1b200e..8df83c74af405232b41b246ca0abb41d6c4d0b63 100644 (file)
@@ -469,8 +469,8 @@ Class1Modem::renegotiatePrimary(bool constrain)
     buf[size++] = DLE;
     if (constrain) {
        // don't neotiate a faster rate
-       if (primaryV34Rate == 1) buf[size++] = 0x70;    // 2400 bit/s
-       else buf[size++] = primaryV34Rate + 0x6E;       // drop 2400 bit/s
+       if (primaryV34Rate == 1 || primaryV34Rate == 2) buf[size++] = 0x70;     // 2400 bit/s
+       else buf[size++] = primaryV34Rate + 0x6D;       // drop 4800 bit/s
        buf[size++] = DLE;
     }
     buf[size++] = 0x6C;                                        // <DLE><pph>