Skip to content

Commit

Permalink
If an instrument is being re-initialised (due to connection parameter…
Browse files Browse the repository at this point in the history
… change perhaps) then it

should disconnect from the current device first.
  • Loading branch information
parnham committed May 1, 2024
1 parent 704606a commit f478f86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/psinc/Transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ namespace psinc

bool Transport::Initialise(const std::set<uint16_t> &vendors, uint16_t product, std::string serial, std::function<void(bool)> onConnection, int timeout)
{
this->Disconnect();

this->vendors = vendors;
this->product = product;
this->serial = serial;
Expand Down

0 comments on commit f478f86

Please sign in to comment.