1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-12 18:58:48 -04:00

Fixed missing bits in API. Fixes #1247

This commit is contained in:
f4exb
2022-05-16 20:51:15 +02:00
parent cddfc00c74
commit 7a8cab7879
21 changed files with 102 additions and 1322 deletions
+1 -14
View File
@@ -226,20 +226,7 @@ void SimplePTTWorker::updateHardware()
SWGSDRangel::SWGErrorResponse error;
m_updateTimer.stop();
m_mutex.unlock();
if (turnDevice(true))
{
m_webAPIAdapterInterface->devicesetFocusPatch(
m_tx ? m_settings.m_txDeviceSetIndex : m_settings.m_rxDeviceSetIndex, response, error);
if (m_msgQueueToGUI)
{
SimplePTTReport::MsgRadioState *msg = SimplePTTReport::MsgRadioState::create(
m_tx ? SimplePTTReport::RadioTx : SimplePTTReport::RadioRx
);
m_msgQueueToGUI->push(msg);
}
}
turnDevice(true);
}
bool SimplePTTWorker::turnDevice(bool on)