Changeset 346
- Timestamp:
- Apr 20, 2012, 10:19:53 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Network/synapse/synaser.pas
r300 r346 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.