Ignore:
Timestamp:
Aug 20, 2012, 2:45:39 PM (12 years ago)
Author:
chronos
Message:
  • Added: TDeviceConnector in PinConnection package for generalized routing serial data to various TCommNode objects.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PinConnection/UCommSerialPort.pas

    r414 r416  
    2020  protected
    2121    procedure SetActive(const AValue: Boolean); override;
     22    procedure AssignTo(Dest: TPersistent); override;
    2223  public
    2324    SerialPort: TSerialPort;
     
    4344  inherited;
    4445  SerialPort.Active := AValue;
     46end;
     47
     48procedure TCommSerialPort.AssignTo(Dest: TPersistent);
     49begin
     50  if Dest is TCommSerialPort then begin
     51    TCommSerialPort(Dest).SerialPort.Assign(SerialPort);
     52  end else inherited;
    4553end;
    4654
Note: See TracChangeset for help on using the changeset viewer.