From: Joel Holdsworth Date: Sun, 1 Jul 2012 14:51:29 +0000 (+0100) Subject: Deal with the samplerate=0 case X-Git-Tag: pulseview-0.1.0~328 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=44dbdbf82160043c6934d2cd6c08a4bd2002af91;p=pulseview.git Deal with the samplerate=0 case --- diff --git a/logicdata.cpp b/logicdata.cpp index 1c6aa59e..1b7f5426 100644 --- a/logicdata.cpp +++ b/logicdata.cpp @@ -25,7 +25,7 @@ using namespace boost; using namespace std; LogicData::LogicData(const sr_datafeed_meta_logic &meta) : - SignalData(meta.samplerate), + SignalData(meta.samplerate > 0 ? meta.samplerate : 1), _num_probes(meta.num_probes) { }