From 11ba9bd725d3440db8ceaf403fa75cf3ea4c5c06 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 1 Apr 2023 18:56:43 +0200 Subject: [PATCH] SimpePTT: fixed warnings (2) --- plugins/feature/simpleptt/simplepttworker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/feature/simpleptt/simplepttworker.cpp b/plugins/feature/simpleptt/simplepttworker.cpp index 5cff172f3..602837f59 100644 --- a/plugins/feature/simpleptt/simplepttworker.cpp +++ b/plugins/feature/simpleptt/simplepttworker.cpp @@ -297,7 +297,7 @@ 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)); if (!ChannelWebAPIUtils::patchDeviceSetting(deviceSetIndex, "gpioPins", gpioPins)) {