Browse Source

* Should compile without c operators

git-svn-id: trunk@26869 -
michael 11 years ago
parent
commit
3a34a371b3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/win32/serial.pp

+ 3 - 3
rtl/win32/serial.pp

@@ -420,13 +420,13 @@ begin
   repeat
     if mSec < quantum then begin
       Sleep(mSec);
-      mSec := 0
+      mSec := 0;
     end else begin
       Sleep(quantum);
-      mSec -= quantum
+      mSec := msec-quantum;
     end;
     if (mSec > 0) and Assigned(SerialIdle) then
-      SerialIdle(Handle)
+      SerialIdle(Handle);
   until mSec <= 0;
   ClearCommBreak(Handle);
   if sync then