From 5620539c5113781af252576f9b7af5420e875ba7 Mon Sep 17 00:00:00 2001 From: Soeren Apel Date: Sat, 21 Apr 2018 11:09:11 +0200 Subject: [PATCH 1/1] DecodeSignal: When lacking input, retry only when data is available --- pv/data/decodesignal.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pv/data/decodesignal.cpp b/pv/data/decodesignal.cpp index f7057d06..8483d91d 100644 --- a/pv/data/decodesignal.cpp +++ b/pv/data/decodesignal.cpp @@ -1199,6 +1199,12 @@ void DecodeSignal::on_data_cleared() void DecodeSignal::on_data_received() { + // If we detected a lack of input data when trying to start decoding, + // we have set an error message. Only try again if we now have data + // to work with + if ((!error_message_.isEmpty()) && (get_input_segment_count() == 0)) + return; + if (!logic_mux_thread_.joinable()) begin_decode(); else -- 2.30.2