From 26363ec92af8b8a70e1879368d2a8a9bf3a09662 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Thu, 26 Oct 2023 11:41:44 +0800 Subject: [PATCH] fix: Disabled the first dso channel, the export task cracked --- DSView/pv/storesession.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/DSView/pv/storesession.cpp b/DSView/pv/storesession.cpp index 4981d3b1..94364a97 100644 --- a/DSView/pv/storesession.cpp +++ b/DSView/pv/storesession.cpp @@ -935,11 +935,19 @@ void StoreSession::export_proc(data::Snapshot *snapshot) if(_unit_count - i < usize) size = _unit_count - i; + int ch = 0; // Make the cross data buffer. - for (int ch=0; chget_signals()) { + if (s->get_type() != SR_CHANNEL_DSO) + continue; + + if (!dso_snapshot->has_data(s->get_index())) + continue; + uint8_t *wr = ch_data_buffer + ch; - const uint8_t *rd = dso_snapshot->get_samples(0,0, ch) + i; + ch++; + const uint8_t *rd = dso_snapshot->get_samples(0,0, s->get_index()) + i; const uint8_t *rd_end = rd + size; while (rd < rd_end)