From: Lee Howard Date: Thu, 27 Jan 2005 19:50:58 +0000 (+0000) Subject: Bug 118: force the Class 2 driver to send AT+FDIS following EOM X-Git-Tag: HYLAFAX-4_2_2BETA1~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb3383638024b5ebc04dcdd94de0050bd0b880b;p=thirdparty%2FHylaFAX.git Bug 118: force the Class 2 driver to send AT+FDIS following EOM --- diff --git a/CHANGES b/CHANGES index c69e9f8b..5d75e14d 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ Changelog for HylaFAX +* force the Class 2 driver to repeat the +FDIS command after EOM * add FaxParams class and some utilization of it Changelog for HylaFAX 4.2.1 - Jan 11, 2005 diff --git a/faxd/Class2Send.c++ b/faxd/Class2Send.c++ index 5d227d75..155f6454 100644 --- a/faxd/Class2Send.c++ +++ b/faxd/Class2Send.c++ @@ -274,8 +274,11 @@ Class2Modem::sendPhaseB(TIFF* tif, Class2Params& next, FaxMachineInfo& info, if (!decodePPM(pph, ppm, emsg)) goto failed; - if (ppm == PPM_EOP && !(batched & BATCH_LAST)) + if (ppm == PPM_EOP && !(batched & BATCH_LAST)) { ppm = PPM_EOM; + // this should force us to resend disCmd, since some modems don't remember + params.vr = (u_int) -1; + } tracePPM("SEND send", ppm); u_int ppr;