mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-10 18:43:28 -05:00
SDRPlay v1: fix setting of hardware flavour. Fixes #2127
This commit is contained in:
parent
cfc0114c87
commit
ade3eedfa5
@ -110,12 +110,6 @@ bool SDRPlayInput::openDevice()
|
||||
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 product[256];
|
||||
char serial[256];
|
||||
@ -142,6 +136,12 @@ bool SDRPlayInput::openDevice()
|
||||
m_variant = SDRPlayRSP1;
|
||||
}
|
||||
|
||||
if ((res = mirisdr_set_hw_flavour(m_dev, (m_variant == SDRPlayRSP1) ? MIRISDR_HW_DEFAULT : MIRISDR_HW_SDRPLAY)) < 0)
|
||||
{
|
||||
qCritical("SDRPlayInput::openDevice: failed to set HW flavour: %s", strerror(errno));
|
||||
return false;
|
||||
}
|
||||
|
||||
qDebug("SDRPlayInput::openDevice: m_variant: %d", (int) m_variant);
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user