Changeset 87 for trunk/Packages
- Timestamp:
- Sep 5, 2012, 9:16:25 PM (12 years ago)
- Location:
- trunk/Packages
- Files:
-
- 20 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/synapse/synaser.pas
r84 r87 250 250 251 251 {:@abstract(Main class implementing all communication routines)} 252 TBlockSerial = class (TObject)252 TBlockSerial = class 253 253 protected 254 254 FOnStatus: THookSerialStatus; … … 813 813 begin 814 814 FComNr := PortIsClosed; 815 if pos('COM', uppercase(Value)) = 1 then 816 FComNr := StrToIntdef(copy(Value, 4, Length(Value) - 3), PortIsClosed + 1) - 1; 817 if pos('/DEV/TTYS', uppercase(Value)) = 1 then 818 FComNr := StrToIntdef(copy(Value, 10, Length(Value) - 9), PortIsClosed - 1); 815 if Pos('COM', UpperCase(Value)) = 1 then 816 FComNr := StrToIntdef(Copy(Value, 4, Length(Value) - 3), PortIsClosed + 1) - 1; 817 if Pos('/DEV/TTYS', UpperCase(Value)) = 1 then begin 818 FComNr := StrToIntdef(Copy(Value, 10, Length(Value) - 9), PortIsClosed); 819 end; 819 820 end; 820 821 … … 1900 1901 SerialCheck(ioctl(integer(FHandle), TCFLSH, TCIOFLUSH)); 1901 1902 {$ELSE} 1902 SerialCheck(fpioctl(integer(FHandle), TCFLSH, TCIOFLUSH));1903 SerialCheck(fpioctl(integer(FHandle), TCFLSH, Pointer(TCIOFLUSH))); 1903 1904 {$ENDIF} 1904 1905 FBuffer := '';
Note:
See TracChangeset
for help on using the changeset viewer.