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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user