1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

Simple PTT: fixed status indicator

This commit is contained in:
f4exb 2022-08-16 10:42:30 +02:00
parent 532e794fca
commit adea55d41d

View File

@ -226,7 +226,13 @@ void SimplePTTWorker::updateHardware()
SWGSDRangel::SWGErrorResponse error;
m_updateTimer.stop();
m_mutex.unlock();
turnDevice(true);
bool success = turnDevice(true);
if (success && m_msgQueueToGUI)
{
SimplePTTReport::MsgRadioState *msg = SimplePTTReport::MsgRadioState::create(m_tx ? SimplePTTReport::RadioTx : SimplePTTReport::RadioRx);
m_msgQueueToGUI->push(msg);
}
}
bool SimplePTTWorker::turnDevice(bool on)