From ea2308f07f8667cd47142ed228c847fa82542df7 Mon Sep 17 00:00:00 2001 From: dreamsourcelabTAI Date: Thu, 29 Feb 2024 10:10:10 +0800 Subject: [PATCH] fix: check the enabled channels error in LogicSnapshot --- DSView/pv/data/logicsnapshot.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DSView/pv/data/logicsnapshot.cpp b/DSView/pv/data/logicsnapshot.cpp index d7e35818..7db9032b 100644 --- a/DSView/pv/data/logicsnapshot.cpp +++ b/DSView/pv/data/logicsnapshot.cpp @@ -167,11 +167,11 @@ void LogicSnapshot::first_payload(const sr_datafeed_logic &logic, uint64_t total _ch_data.push_back(root_vector); _ch_index.push_back(probe->index); } + } - if (_ch_index.size() == 0){ - dsv_info("ERROR: all channels disalbed"); - assert(0); - } + if (_ch_index.size() == 0){ + dsv_info("ERROR: all channels disalbed"); + assert(0); } } else {