From 03ae7817821e2a27928bbc133b8406e2cac534a9 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 1 Apr 2023 18:43:11 +0200 Subject: [PATCH] SimpePTT: fixed warnings --- plugins/feature/simpleptt/simplepttcommand.cpp | 4 ++-- plugins/feature/simpleptt/simplepttworker.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/feature/simpleptt/simplepttcommand.cpp b/plugins/feature/simpleptt/simplepttcommand.cpp index 8e329d6ac..d1dc2e010 100644 --- a/plugins/feature/simpleptt/simplepttcommand.cpp +++ b/plugins/feature/simpleptt/simplepttcommand.cpp @@ -22,13 +22,13 @@ SimplePTTCommand::SimplePTTCommand() : m_currentProcess(nullptr), + m_currentProcessPid(0), m_currentProcessState(QProcess::NotRunning), m_isInError(false), m_currentProcessError(QProcess::UnknownError), - m_hasExited(false), m_currentProcessExitCode(0), m_currentProcessExitStatus(QProcess::NormalExit), - m_currentProcessPid(0), + m_hasExited(false), m_msgQueueToGUI(nullptr) { m_currentProcessStartTimeStampms = 0; diff --git a/plugins/feature/simpleptt/simplepttworker.cpp b/plugins/feature/simpleptt/simplepttworker.cpp index 6f06fa482..5cff172f3 100644 --- a/plugins/feature/simpleptt/simplepttworker.cpp +++ b/plugins/feature/simpleptt/simplepttworker.cpp @@ -297,8 +297,8 @@ void SimplePTTWorker::preSwitch(bool tx) 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)) { qDebug() << "SimplePTTWorker::preSwitch - Failed to write gpioPins setting. Does this SDR support it?";