Wrong value assigned to CDB.XoffLim

Pixel K.
2011-09-03
2013-04-30
  • Pixel K.
    Pixel K.
    2011-09-03

    in CPort.pas, procedure TCustomComPort.ApplyDCB; there is

    DCB.XonLim := FBuffer.InputSize div 4;
        DCB.XoffLim := DCB.XonLim;

    Shouldn't it be

    DCB.XonLim := FBuffer.InputSize div 4;
        DCB.XoffLim := FBuffer.OutputSize div 4;

    ?

    As it is now, the result is that you can't set correctly the XoffLim buffer size.