mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-02 13:17:48 -04:00
SimpePTT: fixed warnings
This commit is contained in:
parent
5cad053158
commit
03ae781782
@ -22,13 +22,13 @@
|
|||||||
|
|
||||||
SimplePTTCommand::SimplePTTCommand() :
|
SimplePTTCommand::SimplePTTCommand() :
|
||||||
m_currentProcess(nullptr),
|
m_currentProcess(nullptr),
|
||||||
|
m_currentProcessPid(0),
|
||||||
m_currentProcessState(QProcess::NotRunning),
|
m_currentProcessState(QProcess::NotRunning),
|
||||||
m_isInError(false),
|
m_isInError(false),
|
||||||
m_currentProcessError(QProcess::UnknownError),
|
m_currentProcessError(QProcess::UnknownError),
|
||||||
m_hasExited(false),
|
|
||||||
m_currentProcessExitCode(0),
|
m_currentProcessExitCode(0),
|
||||||
m_currentProcessExitStatus(QProcess::NormalExit),
|
m_currentProcessExitStatus(QProcess::NormalExit),
|
||||||
m_currentProcessPid(0),
|
m_hasExited(false),
|
||||||
m_msgQueueToGUI(nullptr)
|
m_msgQueueToGUI(nullptr)
|
||||||
{
|
{
|
||||||
m_currentProcessStartTimeStampms = 0;
|
m_currentProcessStartTimeStampms = 0;
|
||||||
|
@ -297,8 +297,8 @@ void SimplePTTWorker::preSwitch(bool tx)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gpioPins != gpioMask & (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues);
|
gpioPins != (gpioMask & (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues));
|
||||||
gpioPins &= ~gpioMask | (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues);
|
gpioPins &= (~gpioMask | (tx ? m_settings.m_rx2txGPIOValues : m_settings.m_tx2rxGPIOValues));
|
||||||
|
|
||||||
if (!ChannelWebAPIUtils::patchDeviceSetting(deviceSetIndex, "gpioPins", gpioPins)) {
|
if (!ChannelWebAPIUtils::patchDeviceSetting(deviceSetIndex, "gpioPins", gpioPins)) {
|
||||||
qDebug() << "SimplePTTWorker::preSwitch - Failed to write gpioPins setting. Does this SDR support it?";
|
qDebug() << "SimplePTTWorker::preSwitch - Failed to write gpioPins setting. Does this SDR support it?";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user