Changeset 409 for ISPProgrammer


Ignore:
Timestamp:
Aug 14, 2012, 11:55:28 AM (12 years ago)
Author:
chronos
Message:
  • Modified: Class TSerialPort in PinConnection package now use only numeric baud rate instead of static list of possible rates.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ISPProgrammer/Dallas/UDallasProgrammer.pas

    r406 r409  
    4141    Timeout: TDateTime;
    4242    Identification: string;
    43     BaudRate: TBaudRate;
     43    BaudRate: Integer;
    4444    procedure LoadFromRegistry(Root: HKEY; Key: string); override;
    4545    procedure SaveToRegistry(Root: HKEY; Key: string); override;
     
    187187      RootKey := Root;
    188188      OpenKey(Key + '\ISPProgrammer\Dallas', True);
    189       BaudRate := TBaudRate(ReadIntegerWithDefault('FirmwareBaudRate', Integer(br57600)));
     189      BaudRate := ReadIntegerWithDefault('FirmwareBaudRate', 57600);
    190190    finally
    191191      Free;
     
    414414  Pin := TCommPin.Create;
    415415  Pin.OnReceive := ReceiveData;
    416   BaudRate := br9600;
     416  BaudRate := 9600;
    417417  SerialPortBackup := TCommSerialPort.Create;
    418418end;
Note: See TracChangeset for help on using the changeset viewer.