mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 06:04:39 -04:00
XTRX output
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
const PluginDescriptor XTRXInputPlugin::m_pluginDescriptor = {
|
||||
QString("XTRX Input"),
|
||||
QString("4.4.0"),
|
||||
QString("(c) Sergey Kostanbaev, Fairwaves"),
|
||||
QString("https://github.com/xtrx-sdr/sdrangel"),
|
||||
QString("(c) Edouard Griffiths, F4EXB"),
|
||||
QString("https://github.com/f4exb/sdrangel"),
|
||||
true,
|
||||
QString("https://github.com/xtrx-sdr/sdrangel")
|
||||
QString("https://github.com/f4exb/sdrangel")
|
||||
};
|
||||
|
||||
const QString XTRXInputPlugin::m_hardwareID = "XTRX";
|
||||
@@ -113,24 +113,6 @@ PluginInstanceGUI* XTRXInputPlugin::createSampleSourcePluginInstanceGUI(
|
||||
}
|
||||
#endif
|
||||
|
||||
bool XTRXInputPlugin::findSerial(const char *lmsInfoStr, std::string& serial)
|
||||
{
|
||||
std::regex serial_reg("serial=([0-9,A-F]+)");
|
||||
std::string input(lmsInfoStr);
|
||||
std::smatch result;
|
||||
std::regex_search(input, result, serial_reg);
|
||||
|
||||
if (result[1].str().length()>0)
|
||||
{
|
||||
serial = result[1].str();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
DeviceSampleSource *XTRXInputPlugin::createSampleSourcePluginInstanceInput(const QString& sourceId, DeviceSourceAPI *deviceAPI)
|
||||
{
|
||||
if (sourceId == m_deviceTypeID)
|
||||
|
||||
Reference in New Issue
Block a user