mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-08 08:54:49 -04:00
Added a plugin for BladeRF. Removed GNUradio from the build (gr-osmocom source) as this does not work properly
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
#include "dsp/samplesource/samplesource.h"
|
||||
#include "util/simpleserializer.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
SampleSource::GeneralSettings::GeneralSettings() :
|
||||
m_centerFrequency(100000000)
|
||||
{
|
||||
@@ -40,12 +42,15 @@ bool SampleSource::GeneralSettings::deserialize(const QByteArray& data)
|
||||
SimpleDeserializer d(data);
|
||||
|
||||
if(!d.isValid()) {
|
||||
std::cerr << "SampleSource::GeneralSettings::deserialize: invalid deserializer" << std::endl;
|
||||
resetToDefaults();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(d.getVersion() == 1) {
|
||||
d.readU64(1, &m_centerFrequency, 100000000);
|
||||
std::cerr << "SampleSource::GeneralSettings::deserialize: center frequency = "
|
||||
<< m_centerFrequency << std::endl;
|
||||
return true;
|
||||
} else {
|
||||
resetToDefaults();
|
||||
|
||||
Reference in New Issue
Block a user