kopia lustrzana https://github.com/f4exb/sdrangel
Merge pull request #1344 from ericek111/master
SDRPlayInput: separate HW flavour from mirisdr_openpull/1352/head
commit
bd84abbd6a
|
@ -103,12 +103,18 @@ bool SDRPlayInput::openDevice()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((res = mirisdr_open(&m_dev, MIRISDR_HW_SDRPLAY, m_devNumber)) < 0)
|
if ((res = mirisdr_open(&m_dev, m_devNumber)) < 0)
|
||||||
{
|
{
|
||||||
qCritical("SDRPlayInput::openDevice: could not open SDRPlay #%d: %s", m_devNumber, strerror(errno));
|
qCritical("SDRPlayInput::openDevice: could not open SDRPlay #%d: %s", m_devNumber, strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((res = mirisdr_set_hw_flavour(m_dev, MIRISDR_HW_SDRPLAY)) < 0)
|
||||||
|
{
|
||||||
|
qCritical("SDRPlayInput::openDevice: failed to set HW flavour: %s", strerror(errno));
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
char vendor[256];
|
char vendor[256];
|
||||||
char product[256];
|
char product[256];
|
||||||
char serial[256];
|
char serial[256];
|
||||||
|
|
Ładowanie…
Reference in New Issue