projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dd95c7
)
Deal with the samplerate=0 case
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 1 Jul 2012 14:51:29 +0000
(15:51 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 3 Sep 2012 12:59:06 +0000
(13:59 +0100)
logicdata.cpp
patch
|
blob
|
history
diff --git
a/logicdata.cpp
b/logicdata.cpp
index 1c6aa59e1d5fc463912ca4d4311ec7adc9a4cfcb..1b7f5426ad8a7e01040f151372f3615c0a90300d 100644
(file)
--- 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)
{
}