Changeset 18996


Ignore:
Timestamp:
04/18/18 17:31:13 (7 years ago)
Author:
tbretz
Message:
Connection must be closed when setting a parameter fails, it is unusable. Made Connect() virtual to allow the derived class to access the parameters when a connection gets reconnected.
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/ConnectionUSB.cc

    r18909 r18996  
    315315    {
    316316        Error(string("Setting connection options: ")+erc.what());
    317         // CLOSE
     317        close();
    318318        return;
    319319    }
  • trunk/FACT++/src/ConnectionUSB.h

    r18909 r18996  
    7070    void SetEndpoint(const std::string &addr);
    7171
    72     void Connect(int baud_rate=115200,
     72    virtual void Connect(int baud_rate=115200,
    7373                 int character_size=8,
    7474                 boost::asio::serial_port_base::parity::type parity=boost::asio::serial_port_base::parity::none,
Note: See TracChangeset for help on using the changeset viewer.