projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ac961e
)
Open/close devices as needed
author
Bert Vermeulen
<bert@biot.com>
Wed, 24 Apr 2013 19:56:01 +0000
(21:56 +0200)
committer
Bert Vermeulen
<bert@biot.com>
Wed, 24 Apr 2013 19:58:28 +0000
(21:58 +0200)
pv/sigsession.cpp
patch
|
blob
|
history
diff --git
a/pv/sigsession.cpp
b/pv/sigsession.cpp
index 354082c7262c351a3fe09423761823e7beab302d..c5a7d494ecf8ed55237b4c440bd3f4497e72c398 100644
(file)
--- a/
pv/sigsession.cpp
+++ b/
pv/sigsession.cpp
@@
-61,6
+61,10
@@
SigSession::~SigSession()
void SigSession::set_device(struct sr_dev_inst *sdi)
{
+ if (_sdi)
+ sr_dev_close(_sdi);
+ if (sdi)
+ sr_dev_open(sdi);
_sdi = sdi;
}