Skip to content

Commit

Permalink
soapy: Fix the timestamp calculation of the first sample in the burst
Browse files Browse the repository at this point in the history
This bug was introduced in 4f1eb7b commit,
the timestamp of the first sample in the burst was doubled without any reason.
  • Loading branch information
kluchnikov authored and chemeris committed Dec 19, 2019
1 parent 1c0ad68 commit 98458ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soapy/SoapyXTRX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ int SoapyXTRX::writeStream(
nfo.buffers = buffs;
nfo.flags = 0;
nfo.samples = toSend;
nfo.ts = 2*ts;
nfo.ts = ts;
nfo.timeout = timeoutUs / 1000;

//std::cerr << "SAMPLES: " << numElems << " TS:" << ts <<std::endl;
Expand Down

0 comments on commit 98458ce

Please sign in to comment.