PurgeInput change
This commit is contained in:
parent
4e2fcf4584
commit
21a5279d38
|
@ -57,14 +57,14 @@ Begin
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TIOBase.PurgeInputData;
|
Procedure TIOBase.PurgeInputData;
|
||||||
Var
|
//Var
|
||||||
Buf : Array[1..2048] of Char;
|
// Buf : Array[1..2048] of Char;
|
||||||
Begin
|
Begin
|
||||||
FInBufPos := 0;
|
FInBufPos := 0;
|
||||||
FInBufEnd := 0;
|
FInBufEnd := 0;
|
||||||
|
|
||||||
While DataWaiting Do
|
// While DataWaiting Do
|
||||||
ReadBuf(Buf, SizeOf(Buf));
|
// ReadBuf(Buf, SizeOf(Buf));
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Function TIOBase.DataWaiting : Boolean;
|
Function TIOBase.DataWaiting : Boolean;
|
||||||
|
|
Loading…
Reference in New Issue