From: Soeren Apel Date: Thu, 23 Jul 2015 18:48:21 +0000 (+0200) Subject: Session: Clear signal data before starting capture X-Git-Tag: pulseview-0.3.0~169 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=53ea4c6cd9b58ce91830804051e9d4906784d892;p=pulseview.git Session: Clear signal data before starting capture --- diff --git a/pv/session.cpp b/pv/session.cpp index b5d7911f..b90c0301 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -179,6 +179,11 @@ void Session::start_capture(function error_handler) } } + // Clear signal data + const set< shared_ptr > signal_data = get_data(); + for (const shared_ptr d : signal_data) + d->clear(); + // Begin the session sampling_thread_ = std::thread( &Session::sample_thread_proc, this, device_,