1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-31 11:19:18 +00:00

Fix four bits source adapter

This commit is contained in:
Javier Arribas 2022-05-24 15:44:11 +02:00
parent a45998d0db
commit 0eebe9c2de

View File

@ -85,7 +85,17 @@ std::tuple<size_t, bool> FourBitCpxFileSignalSource::itemTypeToSize()
// 1 byte -> 1 complex samples
double FourBitCpxFileSignalSource::packetsPerSample() const { return 1.0; }
gnss_shared_ptr<gr::block> FourBitCpxFileSignalSource::source() const { return timestamp_block_; }
gnss_shared_ptr<gr::block> FourBitCpxFileSignalSource::source() const
{
if (timestamp_file_.size() > 1)
{
return timestamp_block_;
}
else
{
return inter_shorts_to_cpx_;
}
}
void FourBitCpxFileSignalSource::create_file_source_hook()