Selaa lähdekoodia

* Should compile without c operators

git-svn-id: trunk@26869 -
michael 11 vuotta sitten
vanhempi
commit
3a34a371b3
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  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