]> sigrok.org Git - pulseview.git/commitdiff
Deal with the samplerate=0 case
authorJoel Holdsworth <redacted>
Sun, 1 Jul 2012 14:51:29 +0000 (15:51 +0100)
committerJoel Holdsworth <redacted>
Mon, 3 Sep 2012 12:59:06 +0000 (13:59 +0100)
logicdata.cpp

index 1c6aa59e1d5fc463912ca4d4311ec7adc9a4cfcb..1b7f5426ad8a7e01040f151372f3615c0a90300d 100644 (file)
@@ -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)
 {
 }