projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Session: Clear signal data before starting capture
[pulseview.git]
/
pv
/
session.cpp
diff --git
a/pv/session.cpp
b/pv/session.cpp
index b5d7911fede86af41f8e17e2914bd52a875691db..b90c03016d6b42cc924787710c7e547685728dd7 100644
(file)
--- a/
pv/session.cpp
+++ b/
pv/session.cpp
@@
-179,6
+179,11
@@
void Session::start_capture(function<void (const QString)> error_handler)
}
}
}
}
+ // Clear signal data
+ const set< shared_ptr<data::SignalData> > signal_data = get_data();
+ for (const shared_ptr<data::SignalData> d : signal_data)
+ d->clear();
+
// Begin the session
sampling_thread_ = std::thread(
&Session::sample_thread_proc, this, device_,
// Begin the session
sampling_thread_ = std::thread(
&Session::sample_thread_proc, this, device_,