From 72acce0c82a14b615710acc186e209068b6b9fea Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 28 Jan 2022 13:53:27 +0100 Subject: [PATCH] detect edges even when x --- kernel/fstdata.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index 9170da45e..53603ef49 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -114,9 +114,9 @@ void FstData::reconstruct_edges_callback(uint64_t pnt_time, fstHandle pnt_facidx std::string val = std::string((const char *)pnt_value); std::string prev = last_data[pnt_facidx]; if (pnt_time>=start_time) { - if (prev=="0" && val=="1") + if (prev!="1" && val=="1") edges.push_back(pnt_time); - if (prev=="1" && val=="0") + if (prev!="0" && val=="0") edges.push_back(pnt_time); } last_data[pnt_facidx] = val; -- 2.30.2